diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 11:08:05 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 11:08:05 +0400 |
commit | 003bf61258ea20128315076936f09ea198e56bcb (patch) | |
tree | 85345a86c9c72080b4319fffdb11010a9b2b4aac /config/initializers/devise.rb | |
parent | 8d74123d61e83c29b5449773e1c471d2e2aa126f (diff) |
add auth token for users
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r-- | config/initializers/devise.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index e62db747a64..68bf5a0ea39 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -158,11 +158,11 @@ Devise.setup do |config| # ==> Configuration for :token_authenticatable # Defines name of the authentication token params key - # config.token_authentication_key = :auth_token + config.token_authentication_key = :private_token # If true, authentication through token does not store user in session and needs # to be supplied on each request. Useful if you are using the token as API token. - # config.stateless_token = false + config.stateless_token = true # ==> Scopes configuration # Turn scoped views on. Before rendering "sessions/new", it will first check for |