Add authentication and User model
* Add User model * Add SessionsController * Add password authentication on User * Request authentication for all actions except sign in * Add some helpers for ApplicationController * Update features to work with mandatory authentication
This commit is contained in:
6
app/views/sessions/new.html.haml
Normal file
6
app/views/sessions/new.html.haml
Normal file
@@ -0,0 +1,6 @@
|
||||
= form_for(:session, :url => sessions_path) do |f|
|
||||
= f.label :email
|
||||
= f.text_field :email
|
||||
= f.label :password
|
||||
= f.password_field :password
|
||||
= f.submit 'Sign in'
|
Reference in New Issue
Block a user