Auth by username instead of email

Added username to User table/model
This commit is contained in:
Jason Denney
2013-05-25 11:08:58 -04:00
parent a07d6345e8
commit 9021294c4b
9 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,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 = [ :username ]
# 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