Closed Bug 446360 Opened 17 years ago Closed 17 years ago

Display error when a (half-)empty login form is submitted

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: wenzel)

References

()

Details

Attachments

(1 file)

While building out my automated Selenium testcases for AMO, I noticed that the login form validation on https://preview.addons.mozilla.org/en-US/firefox/users/login isn't working. Steps to Reproduce: 1. Load https://preview.addons.mozilla.org/en-US/firefox/users/login 2. Clear the textfields 3. Click "Log in" Expected Results: As on production, it should throw "Wrong username or password!" Actual Results: "Please confirm your user account first with the code you received by email. A link to activate your user account was sent by email to your address . You have to click it before you can log into Firefox Add-ons. If you did not receive the confirmation email, make sure your email service did not mark it as "junk mail" or "spam". If you need to, you can have us resend the confirmation message to your email address mentioned above."
Brandon: is this a potential security risk?
The preview db is out of sync (as usual :-/ I thought that was auto-updated somehow?) -- other that that, this is a dupe of bug 434540, sorry.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Reopening: While this problem is fixed in production, I think we should throw the usual "this field must not be empty" error if you submit the form with either field empty. Putting it into the database in the first place when it's clearly invalid is not good. I'll tackle this as part of 3.4.7.
Status: RESOLVED → REOPENED
Keywords: regression
Resolution: DUPLICATE → ---
Target Milestone: 3.4.6 → 3.4.7
Version: unspecified → 3.2
Assignee: nobody → fwenzel
Status: REOPENED → NEW
Summary: Login validation isn't working for empty email and password textfields → Display error when a (half-)empty login form is submitted
Severity: major → minor
This throws the "bad login" error if any of the two fields is empty (instead of even trying to find the right user in the DB).
Attachment #333578 - Flags: review?(cdolivei.bugzilla)
Comment on attachment 333578 [details] [diff] [review] throw error on empty login field Looks good from my testing
Attachment #333578 - Flags: review?(cdolivei.bugzilla) → review+
I checked this in to r17656. Thanks!
Status: NEW → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Verified FIXED on preview.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: