Opened 11 years ago
Closed 11 years ago
#34950 closed defect (bug) (fixed)
Confirm weak password checkbox not hidden when process cancelled
| Reported by: | ChemicalSailor | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Users | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | ui, javascript, administration |
Description
When changing user password, if a user enters a weak password, then cancels the process, the confirm weak password table row is not re-hidden.
Steps to recreate: Go to profile.php, generate new password, enter a weak password, cancel process
Attachments (3)
Change History (11)
@
11 years ago
Hides and Reset the checkbox "Confirm use of weak password " on click on Cancel button
#4
@
11 years ago
Some additional notes on my patch:
- The
if ( $weakCheckbox.prop( 'checked' ) )check isn't necessary. We can simply uncheck it all the time here. normalis not a valid value for.hide(). Using the default value (200ms) leads to the checkbox animation taking longer than the other animation, using0makes it more simultaneous.
#5
@
11 years ago
34950.2.patch looks good.
#6
follow-up:
↓ 7
@
11 years ago
@swissspidy Thanks for correcting the patch. I am sorry with that extra unnecessary if check. However, as per this http://www.w3schools.com/jquery/eff_hide.asp the default value seems to be 400ms. Thank you :)
#7
in reply to: ↑ 6
@
11 years ago
Replying to subharanjan:
the default value seems to be 400ms. Thank you :)
I think setting the duration to 0 it's a way to use the animation syntax (which allows to pass a "complete" callback) and still have the element immediately hidden.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can confirm. The checkbox only goes away when generating a new password or inserting a stronger one manually.