chore: minor fix

This commit is contained in:
Shariq Ansari 2023-08-07 20:47:58 +05:30 committed by GitHub
parent 27426f7ceb
commit 6ed6a3f762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@
frappe.ready(function() {
// URL args
const key = frappe.utils.get_url_arg('key');
const pasword_expired = frappe.utils.get_url_arg('password_expired');
const password_expired = frappe.utils.get_url_arg('password_expired');
// inputs, paragraphs and button elements
const old_password = $('#old_password');
const new_password = $('#new_password');
@ -63,7 +63,7 @@ frappe.ready(function() {
old_password.parent().toggle();
}
if(pasword_expired) {
if(password_expired) {
$(".password-box").html("{{ _('The password of your account has expired.') }}");
}
@ -193,8 +193,8 @@ frappe.ready(function() {
password_strength_message.addClass("hidden");
}
if ((key || (!key && old_password.val() && password_mismatch_message.text() !== password_not_same_as_old_password )) && common_conditions ) {
update_button.prop("disabled", false).css("cursor", "pointer");
}
update_button.prop("disabled", false).css("cursor", "pointer");
}
else {
update_button.prop("disabled", true).css("cursor", "not-allowed");
}