add auth token for users

This commit is contained in:
Nihad Abbasov 2011-11-15 11:08:05 +04:00
parent 8d74123d61
commit 003bf61258
5 changed files with 19 additions and 7 deletions

View file

@ -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