diff --git a/TODO b/TODO index 414d98be..7dba8d7b 100644 --- a/TODO +++ b/TODO @@ -1 +1,3 @@ * Make test run with different ORMs +* Add registerable support +* Add http authentication support \ No newline at end of file diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index b73c80dc..94476758 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,18 +1,20 @@

Sign in

-<% form_for resource_name, resource, :url => session_path(resource_name) do |f| -%> -

<%= f.label :email %>

-

<%= f.text_field :email %>

+<%- if devise_mapping.authenticatable? %> + <% form_for resource_name, resource, :url => session_path(resource_name) do |f| -%> +

<%= f.label :email %>

+

<%= f.text_field :email %>

-

<%= f.label :password %>

-

<%= f.password_field :password %>

+

<%= f.label :password %>

+

<%= f.password_field :password %>

- <% if devise_mapping.rememberable? -%> -

<%= f.check_box :remember_me %> <%= f.label :remember_me %>

+ <% if devise_mapping.rememberable? -%> +

<%= f.check_box :remember_me %> <%= f.label :remember_me %>

+ <% end -%> + +

<%= f.submit "Sign in" %>

<% end -%> - -

<%= f.submit "Sign in" %>

-<% end -%> +<% end%> <%- if devise_mapping.recoverable? %> <%= link_to "Forgot password?", new_password_path(resource_name) %>