reset_confirm: Add show password feature to reset confirm page.

Fixes part of #17301.
This commit is contained in:
Gaurav Pandey
2021-04-05 13:20:48 +05:30
committed by Tim Abbott
parent 91c73025d2
commit a9fcafc433
2 changed files with 14 additions and 4 deletions

View File

@@ -32,6 +32,14 @@ $(() => {
"#id_password",
"#id_password ~ .password_visibility_toggle",
);
common.setup_password_visibility_toggle(
"#id_new_password1",
"#id_new_password1 ~ .password_visibility_toggle",
);
common.setup_password_visibility_toggle(
"#id_new_password2",
"#id_new_password2 ~ .password_visibility_toggle",
);
function highlight(class_to_add) {
// Set a class on the enclosing control group.