config/initializers/devise.rb in jobshop-0.0.41 vs config/initializers/devise.rb in jobshop-0.0.53
- old
+ new
@@ -34,10 +34,10 @@
# parameters are used only when authenticating and not when retrieving from
# 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 = [ :email, :team_id ]
# 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 find_for_authentication method and considered in your model lookup.
# For instance, if you set :request_keys to [:subdomain], :subdomain will be