Commit c7a869e4a335d6d559880148cf6503931b6070fb
1 parent
ae2b6065
Exists in
master
and in
1 other branch
Email only unless user_has_username
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/devise/sessions/new.html.haml
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| |
10 | 10 | .required |
11 | 11 | = f.label auth_key |
12 | - = f.text_field auth_key, :type => :email, :tabindex => 1 | |
12 | + = f.text_field auth_key, :type => (Errbit::Config.user_has_username ? 'text' : 'email'), :tabindex => 1 | |
13 | 13 | |
14 | 14 | .required |
15 | 15 | = link_to 'forget it?', new_password_path(resource_name), :class => 'float-right', :id => "forgot_password" | ... | ... |