fix: Made Set Password Page Better
This commit is contained in:
parent
6e94cd2eb9
commit
8b7ed91c39
1 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ frappe.ready(function() {
|
|||
if (args.new_password !== confirm_password) {
|
||||
$('.password-mismatch-message').text("{{ _('Passwords do not match') }}")
|
||||
.removeClass('hidden text-muted').addClass('text-danger');
|
||||
$('.password-strength-message').addClass('hidden');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -198,6 +199,7 @@ frappe.ready(function() {
|
|||
message.push("{{ _('Success! You are good to go 👍') }}");
|
||||
}
|
||||
}
|
||||
$('.password-mismatch-message').text("").addClass('hidden');
|
||||
strength_message.html(message.join(' ') || '').removeClass('hidden');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue