update devise
This commit is contained in:
parent
7f207d4a87
commit
2abd054b0c
7 changed files with 51 additions and 28 deletions
|
@ -93,10 +93,6 @@ Devise.setup do |config|
|
|||
# If true, extends the user's remember period when remembered via cookie.
|
||||
# config.extend_remember_period = false
|
||||
|
||||
# If true, uses the password salt as remember token. This should be turned
|
||||
# to false if you are not using database authenticatable.
|
||||
config.use_salt_as_remember_token = true
|
||||
|
||||
# Options to be passed to the created cookie. For instance, you can set
|
||||
# :secure => true in order to force SSL only cookies.
|
||||
# config.cookie_options = {}
|
||||
|
@ -160,9 +156,9 @@ Devise.setup do |config|
|
|||
# Defines name of the authentication token params key
|
||||
config.token_authentication_key = :private_token
|
||||
|
||||
# If true, authentication through token does not store user in session and needs
|
||||
# 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 = true
|
||||
config.skip_session_storage << :token_auth
|
||||
|
||||
# ==> Scopes configuration
|
||||
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue