summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth/Persist/Cookie.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-11-14 20:45:46 +0100
committerDavid Lawrence <dkl@mozilla.com>2014-11-14 20:45:46 +0100
commit987611195db12b9c42cdfdbb383811f99322cdd7 (patch)
tree5c4fe3e26f87b225753a9c70892416fe514e07e7 /Bugzilla/Auth/Persist/Cookie.pm
parentae3093fa0de16ffd653f8c4c55e4311e9264ab08 (diff)
downloadbugzilla-987611195db12b9c42cdfdbb383811f99322cdd7.tar.gz
bugzilla-987611195db12b9c42cdfdbb383811f99322cdd7.tar.xz
Bug 1097813: backport upstream bug 1001462 to bmo/4.2 to fix issue with using tokens with webservice rest api
Diffstat (limited to 'Bugzilla/Auth/Persist/Cookie.pm')
-rw-r--r--Bugzilla/Auth/Persist/Cookie.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Auth/Persist/Cookie.pm b/Bugzilla/Auth/Persist/Cookie.pm
index c1d133772..a064a231a 100644
--- a/Bugzilla/Auth/Persist/Cookie.pm
+++ b/Bugzilla/Auth/Persist/Cookie.pm
@@ -36,8 +36,6 @@ use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Token;
-use Bugzilla::Auth::Login::Cookie qw(login_token);
-
use List::Util qw(first);
sub new {
@@ -102,6 +100,8 @@ sub persist_login {
$cgi->send_cookie(-name => 'Bugzilla_logincookie',
-value => $login_cookie,
%cookieargs);
+
+ return $login_cookie;
}
sub logout {