将过期改为1个月
This commit is contained in:
parent
39308dacfd
commit
a1240e8743
|
@ -333,7 +333,7 @@ class AccountController < ApplicationController
|
|||
token = Token.get_or_create_permanent_login_token(user)
|
||||
cookie_options = {
|
||||
:value => token.value,
|
||||
:expires => 7.days.from_now,
|
||||
:expires => 1.month.from_now,
|
||||
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
|
||||
:secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
|
||||
:httponly => true
|
||||
|
|
Loading…
Reference in New Issue