login with both email or username

This commit is contained in:
Dmitriy Zaporozhets 2013-03-25 16:10:14 +02:00
parent 1496c01521
commit 9d92433a7c
4 changed files with 27 additions and 10 deletions

View file

@ -23,7 +23,7 @@ Devise.setup do |config|
# session. If you need permissions, you should implement that in a before filter.
# You can also supply a hash where the value is a boolean determining whether
# or not authentication should be aborted when the value is not present.
# config.authentication_keys = [ :email ]
config.authentication_keys = [ :login ]
# Configure parameters from the request object used for authentication. Each entry
# given should be a request method and it will automatically be passed to the