From bcb6edf34b569d2bb9cb3d2d29981d12fdb6b8dd Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 8 Oct 2015 21:53:36 +0800 Subject: Bug 1202281 - BMO login being reset for every browser session --- Bugzilla/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index 50e892914..f57ee80e0 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -133,8 +133,8 @@ sub mfa_verified { my $params = Bugzilla->input_params; $self->{_info_getter}->{successful} = Bugzilla::Auth::Login::CGI->new(); - $params->{Bugzilla_restrictlogin} = !!$event->{restrictlogin}; - $params->{Bugzilla_remember} = !!$event->{remember}; + $params->{Bugzilla_restrictlogin} = $event->{restrictlogin} if defined $event->{restrictlogin}; + $params->{Bugzilla_remember} = $event->{remember} if defined $event->{remember}; $self->_handle_login_result({ user => $user }, $event->{type}); } -- cgit v1.2.3-24-g4f1b