Opened 9 years ago
Closed 9 years ago
#34950 closed defect (bug) (fixed)
Confirm weak password checkbox not hidden when process cancelled
Reported by: | ChemicalSailor | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Users | Keywords: | has-patch commit |
Focuses: | ui, javascript, administration | Cc: |
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)
@
9 years ago
Hides and Reset the checkbox "Confirm use of weak password " on click on Cancel button
#4
@
9 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. normal
is not a valid value for.hide()
. Using the default value (200ms) leads to the checkbox animation taking longer than the other animation, using0
makes it more simultaneous.
#5
@
9 years ago
34950.2.patch looks good.
#6
follow-up:
↓ 7
@
9 years ago
@swissspidy Thanks for the 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
@
9 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.
Can confirm. The checkbox only goes away when generating a new password or inserting a stronger one manually.