|
|
|
@ -332,7 +332,7 @@ class AccountController < ApplicationController
|
|
|
|
|
token = Token.create(:user => user, :action => 'autologin')
|
|
|
|
|
cookie_options = {
|
|
|
|
|
:value => token.value,
|
|
|
|
|
:expires => 1.year.from_now,
|
|
|
|
|
:expires => 7.days.from_now,
|
|
|
|
|
:path => (Redmine::Configuration['autologin_cookie_path'] || '/'),
|
|
|
|
|
:secure => (Redmine::Configuration['autologin_cookie_secure'] ? true : false),
|
|
|
|
|
:httponly => true
|
|
|
|
|