将过期改为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)
|
token = Token.get_or_create_permanent_login_token(user)
|
||||||
cookie_options = {
|
cookie_options = {
|
||||||
:value => token.value,
|
:value => token.value,
|
||||||
:expires => 7.days.from_now,
|
:expires => 1.month.from_now,
|
||||||
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
|
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
|
||||||
:secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
|
:secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
|
||||||
:httponly => true
|
:httponly => true
|
||||||
|
|
Loading…
Reference in New Issue