mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Enable configuring user session timeout
This commit is contained in:
parent
192591139f
commit
030eaa3078
2 changed files with 3 additions and 1 deletions
|
@ -127,3 +127,5 @@ payments_lhv_url: 'https://www.seb.ee/cgi-bin/dv.sh/ipank.r'
|
||||||
payments_lhv_bank_certificate: 'eyp_pub.pem'
|
payments_lhv_bank_certificate: 'eyp_pub.pem'
|
||||||
payments_lhv_seller_private: 'kaupmees_priv.pem'
|
payments_lhv_seller_private: 'kaupmees_priv.pem'
|
||||||
payments_lhv_seller_account: 'testvpos'
|
payments_lhv_seller_account: 'testvpos'
|
||||||
|
|
||||||
|
user_session_timeout: '3600' # 1 hour
|
||||||
|
|
|
@ -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 = (Rails.env.development? || Rails.env.staging?) ? 5.years : 8.hours
|
config.timeout_in = 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