diff --git a/frappe/www/update-password.html b/frappe/www/update-password.html index 7351311def..707bc21e09 100644 --- a/frappe/www/update-password.html +++ b/frappe/www/update-password.html @@ -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'); }