Enable configuring user session timeout

This commit is contained in:
Artur Beljajev 2017-09-27 01:58:43 +03:00
parent 192591139f
commit 030eaa3078
2 changed files with 3 additions and 1 deletions

View file

@ -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_seller_private: 'kaupmees_priv.pem'
payments_lhv_seller_account: 'testvpos'
user_session_timeout: '3600' # 1 hour

View file

@ -155,7 +155,7 @@ Devise.setup do |config|
# ==> Configuration for :timeoutable
# 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.
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.
# config.expire_auth_token_on_timeout = false