chore: minor fix
This commit is contained in:
parent
27426f7ceb
commit
6ed6a3f762
1 changed files with 4 additions and 4 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue