mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Parse "user_session_timeout" config key
This commit is contained in:
parent
030eaa3078
commit
908f90d93f
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,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 = ENV['user_session_timeout']
|
config.timeout_in = ENV['user_session_timeout'].to_i.seconds if ENV['user_session_timeout']
|
||||||
|
|
||||||
# If true, expires auth token on session timeout.
|
# If true, expires auth token on session timeout.
|
||||||
# config.expire_auth_token_on_timeout = false
|
# config.expire_auth_token_on_timeout = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue