Added admin login

This commit is contained in:
Priit Tark 2015-05-20 16:30:36 +03:00
parent c08dc9aae7
commit e0e7a3e35e
8 changed files with 54 additions and 40 deletions

View file

@ -131,7 +131,7 @@ Devise.setup do |config|
# ==> Configuration for :rememberable
# The time the user will be remembered without asking for credentials again.
# config.remember_for = 2.weeks
config.remember_for = 2.weeks
# Invalidates all the remember me tokens when the user signs out.
config.expire_all_remember_me_on_sign_out = true
@ -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 = 30.minutes
config.timeout_in = 8.hours
# If true, expires auth token on session timeout.
# config.expire_auth_token_on_timeout = false