1
0
Fork 0

Enable Devise timeoutable

This commit is contained in:
Alex Kotov 2018-12-04 07:12:07 +05:00
parent d2c578c689
commit 68ad8fc2c1
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ class User < ApplicationRecord
:recoverable,
:registerable,
:rememberable,
# :timeoutable,
:timeoutable,
:trackable,
:validatable,
)

View file

@ -177,7 +177,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 = 1.hour
# ==> Configuration for :lockable
# Defines which strategy will be used to lock an account.