Enable Devise timeoutable
This commit is contained in:
parent
d2c578c689
commit
68ad8fc2c1
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class User < ApplicationRecord
|
||||||
:recoverable,
|
:recoverable,
|
||||||
:registerable,
|
:registerable,
|
||||||
:rememberable,
|
:rememberable,
|
||||||
# :timeoutable,
|
:timeoutable,
|
||||||
:trackable,
|
:trackable,
|
||||||
:validatable,
|
:validatable,
|
||||||
)
|
)
|
||||||
|
|
|
@ -177,7 +177,7 @@ Devise.setup do |config|
|
||||||
# ==> Configuration for :timeoutable
|
# ==> Configuration for :timeoutable
|
||||||
# The time you want to timeout the user session without activity. After this
|
# The time you want to timeout the user session without activity. After this
|
||||||
# time the user will be asked for credentials again. Default is 30 minutes.
|
# time the user will be asked for credentials again. Default is 30 minutes.
|
||||||
# config.timeout_in = 30.minutes
|
config.timeout_in = 1.hour
|
||||||
|
|
||||||
# ==> Configuration for :lockable
|
# ==> Configuration for :lockable
|
||||||
# Defines which strategy will be used to lock an account.
|
# Defines which strategy will be used to lock an account.
|
||||||
|
|
Reference in a new issue