Closed
Bug 493642
Opened 16 years ago
Closed 16 years ago
Header and footer login form shouldn't contain hidden_fields
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
4.12 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Right now the header and footer form convert *any* POST variables on the current page into GET query-string variables when submitting the form, which does a lot of confusing things (like log you out immediately if you came from the logout page, or reset your password if you came from the reset-password page, etc.).
I have a pretty good solution for all this worked out in my mind, and I'll attach a patch with it.
Flags: blocking3.4+
Assignee | ||
Comment 1•16 years ago
|
||
The patch I attach will depend on the patch in bug 482556, because otherwise they'd just conflict.
Depends on: 482556
Assignee | ||
Comment 2•16 years ago
|
||
Here we go. To make sure that people use the form that *has* hidden fields when they're submitting something or doing some other LOGIN_REQUIRED action, we hide the header and footer form on LOGIN_REQUIRED pages.
Comment 3•16 years ago
|
||
Comment on attachment 378165 [details] [diff] [review]
v1
>=== modified file 'template/en/default/account/auth/login-small.html.tmpl'
>+[% IF !(Bugzilla.page_requires_login && !user.id) %]
Double negation is hard to understand (I had to write the logic on a piece of paper and do some maths to get it). I think the logic is wrong as a logged in user would make the test to be true. IMO, it should be:
[% IF !Bugzilla.page_requires_login && !user.id %]
Also, I think you should also hide the "Forgot Password" link in the header/footer as it's already available in the main page; what do you think?
Attachment #378165 -
Flags: review?(LpSolit) → review-
Assignee | ||
Comment 4•16 years ago
|
||
Okay, you had some good points. Here's a new version.
Attachment #378165 -
Attachment is obsolete: true
Attachment #381033 -
Flags: review?(LpSolit)
Updated•16 years ago
|
Attachment #381033 -
Flags: review?(LpSolit) → review+
Comment 5•16 years ago
|
||
Comment on attachment 381033 [details] [diff] [review]
v2
Looks good to me. r=LpSolit
Updated•16 years ago
|
Flags: approval3.4+
Flags: approval+
Target Milestone: --- → Bugzilla 3.4
Assignee | ||
Comment 6•16 years ago
|
||
tip:
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v <-- Bugzilla.pm
new revision: 1.75; previous revision: 1.74
done
Checking in template/en/default/account/auth/login-small.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/account/auth/login-small.html.tmpl,v <-- login-small.html.tmpl
new revision: 1.19; previous revision: 1.18
done
Checking in template/en/default/account/auth/login.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/account/auth/login.html.tmpl,v <-- login.html.tmpl
new revision: 1.22; previous revision: 1.21
done
Checking in template/en/default/global/common-links.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/common-links.html.tmpl,v <-- common-links.html.tmpl
new revision: 1.23; previous revision: 1.22
done
3.4:
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v <-- Bugzilla.pm
new revision: 1.73.2.1; previous revision: 1.73
done
Checking in template/en/default/account/auth/login-small.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/account/auth/login-small.html.tmpl,v <-- login-small.html.tmpl
new revision: 1.17.2.2; previous revision: 1.17.2.1
done
Checking in template/en/default/account/auth/login.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/account/auth/login.html.tmpl,v <-- login.html.tmpl
new revision: 1.21.4.1; previous revision: 1.21
done
Checking in template/en/default/global/common-links.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/common-links.html.tmpl,v <-- common-links.html.tmpl
new revision: 1.20.2.2; previous revision: 1.20.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•