Closed Bug 444387 Opened 18 years ago Closed 18 years ago

Register Button should auto-fill input data on register form

Categories

(Webtools Graveyard :: Verbatim, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dschafer, Assigned: dschafer)

Details

Attachments

(1 file, 1 obsolete file)

Currently, the register link is a button on the login form, but it simply links the user to the register page with all fields blank. When the user clicks "register", it should auto-fill the username and password fields on the registration form with the data they input.
Previously, the register button was its own form that posted nothing to register.html. Now, it is a button that posts to login.html. Since the islogin POST is now on the login button, hitting register won't do any of the login processing. Then, the pootle.py page-sorter will see that the register button was pressed (since doregister is now in argdict) and redirect to register.html. However, now the argdict will contain the data from the login form, so the registration form is auto-filled.
Attachment #328771 - Flags: review?(clouserw)
Comment on attachment 328771 [details] [diff] [review] Make register button auto-fill registration form Doesn't work for me: 1) I click log-in and fill in my new details 2) I click Register 3) I get a larger form with my stuff filled in (woo) 4) I fill my stuff in and click Register 5) I get login.html and it says "Login failed"
Attachment #328771 - Flags: review?(clouserw) → review-
A bit of a hack; this simply ensures that the registration form POSTs to register.html, so the fact that clicking "register" leaves the URL as login.html doesn't interfere anymore. The result of registration here should be the same as before this patch; an error about being unable to send e-mail will occur, as we don't have e-mail set up to send yet.
Attachment #328771 - Attachment is obsolete: true
Attachment #328918 - Flags: review?(clouserw)
Comment on attachment 328918 [details] [diff] [review] Fix for registration problem in previous patch This doesn't work if the password is invalid (e.g. less than 6 characters). I'm not really worried about it but it would be nice to have a notification on the registration page. That said, r+
Attachment #328918 - Flags: review?(clouserw) → review+
This is in revision 7744; marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: