| Summary: | Portal passwd.php Javascript doesn't allow auto-generating random password | ||
|---|---|---|---|
| Product: | Community | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | Project Management & Portal | Assignee: | Portal Bugzilla Dummy Inbox <portal-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nathan |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
This is still an issue. Nathan, does site login address this? (In reply to comment #2) > Nathan, does site login address this? Since we no longer give the user the option to generate a random password on the new system, marking this as WONTFIX |
It seems the validation javascript for the password reset page in porta is wrong. Although there's a checkbox for auto-generate, it's not possible to submit the form with it checked. Having: if(document.form1.generate.checked) { if(document.form1.Password1.value != "") { document.form1.Password1.className = "inputInvalid"; document.form1.Password2.className = "inputInvalid"; alert("Cannot auto-generate a password if a new password is supplied. Please type a new password OR check the auto-generate option, but not both."); document.form1.Password1.focus(); return; } } else { if((document.form1.Password1.value != document.form1.Password2.value)) { document.form1.Password1.className = "inputInvalid"; document.form1.Password2.className = "inputInvalid"; alert("Your new passwords do not match."); document.form1.Password1.focus(); return; } if(document.form1.Password1.value.length < 6) { document.form1.Password1.className = "inputInvalid"; document.form1.Password2.className = "inputInvalid"; alert("Your password must be 6 characters or more."); document.form1.Password1.focus(); return; } } Appears to make the validation work correctly.