login with both email or username
This commit is contained in:
parent
1496c01521
commit
9d92433a7c
4 changed files with 27 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue