Closed Bug 302644 Opened 19 years ago Closed 19 years ago

relogin.cgi may ask you to login... before logging you out

Categories

(Bugzilla :: User Accounts, defect)

2.20
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(2 files)

Due to bug 279716, if you change your password while requirelogin is on, logging
out will ask you to log in first !?!? This is very confusing!

Fixing bug 279716 would fix this testcase, but relogin.cgi should never ask you
to log in... as the next action will be to log out the user.

The simple fix is to replace Bugzilla->login() by Bugzilla->login(LOGIN_OPTIONAL).
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
Attachment #190959 - Flags: review?(wurblzap)
Comment on attachment 190959 [details] [diff] [review]
patch for 2.20, v1

r=wurblzap for 2.20, and on an unrotted patch for trunk.

Bugzilla->logout() clears cookies for userid 0 if not logged in, so we're safe
here.
Attachment #190959 - Flags: review?(wurblzap) → review+
Attachment #190959 - Attachment description: patch, v1 → patch for 2.20, v1
Attachment #192205 - Flags: review?(wurblzap)
Attachment #192205 - Flags: review?(wurblzap) → review+
Flags: approval?
Flags: approval2.20?
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
tip:

Checking in relogin.cgi;
/cvsroot/mozilla/webtools/bugzilla/relogin.cgi,v  <--  relogin.cgi
new revision: 1.27; previous revision: 1.26
done

2.20rc2:

Checking in relogin.cgi;
/cvsroot/mozilla/webtools/bugzilla/relogin.cgi,v  <--  relogin.cgi
new revision: 1.25.10.1; previous revision: 1.25
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: