mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Merge pull request #966 from internetee/restore-configurable-session-timeout
Fix a regression, where `user_session_timeout` setting in `application.yml` is not respected.
This commit is contained in:
commit
8229f17e40
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,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 = 30.minutes
|
||||
config.timeout_in = ENV['user_session_timeout'].to_i.seconds if ENV['user_session_timeout']
|
||||
|
||||
# ==> Configuration for :lockable
|
||||
# Defines which strategy will be used to lock an account.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue