diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-07-05 20:43:18 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 00:19:20 +0200 |
commit | 37722eca39874bb6abdcd120e3e458bd62dea62b (patch) | |
tree | 57a9a9970c00ec77baecab7e154ef7dfcef863fe /Bugzilla/Auth/Persist | |
parent | a6f98de0d4e842351222b0173a1fff151da8738e (diff) | |
download | bugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.gz bugzilla-37722eca39874bb6abdcd120e3e458bd62dea62b.tar.xz |
Bug 1377933 - Remove trailing whitespace from all perl files
Diffstat (limited to 'Bugzilla/Auth/Persist')
-rw-r--r-- | Bugzilla/Auth/Persist/Cookie.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Auth/Persist/Cookie.pm b/Bugzilla/Auth/Persist/Cookie.pm index f39ad7de3..57473f551 100644 --- a/Bugzilla/Auth/Persist/Cookie.pm +++ b/Bugzilla/Auth/Persist/Cookie.pm @@ -34,7 +34,7 @@ sub persist_login { $dbh->bz_start_transaction(); - my $login_cookie = + my $login_cookie = Bugzilla::Token::GenerateUniqueToken('logincookies', 'cookie'); my $ip_addr = remote_ip(); @@ -61,13 +61,13 @@ sub persist_login { if ( Bugzilla->params->{'rememberlogin'} eq 'on' || (Bugzilla->params->{'rememberlogin'} ne 'off' && $input_params->{'Bugzilla_remember'} && - $input_params->{'Bugzilla_remember'} eq 'on') ) + $input_params->{'Bugzilla_remember'} eq 'on') ) { # Not a session cookie, so set an infinite expiry $cookieargs{'-expires'} = 'Fri, 01-Jan-2038 00:00:00 GMT'; } if (Bugzilla->params->{'ssl_redirect'}) { - # Make these cookies only be sent to us by the browser during + # Make these cookies only be sent to us by the browser during # HTTPS sessions, if we're using SSL. $cookieargs{'-secure'} = 1; } @@ -89,7 +89,7 @@ sub persist_login { Bugzilla->audit(sprintf "successful login of %s from %s using \"%s\", authenticated by %s", $user->login, $ip_addr, $cgi->user_agent // '', $auth_method); } - + return $login_cookie; } |