summaryrefslogtreecommitdiff
path: root/plugins/password/password.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/password/password.js')
-rw-r--r--plugins/password/password.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/password/password.js b/plugins/password/password.js
index c3252f031..8a079de2d 100644
--- a/plugins/password/password.js
+++ b/plugins/password/password.js
@@ -25,7 +25,7 @@ if (window.rcmail) {
} else if (input_confpasswd && input_confpasswd.value=='') {
alert(rcmail.gettext('nopassword', 'password'));
input_confpasswd.focus();
- } else if ((input_newpasswd && input_confpasswd) && (input_newpasswd.value != input_confpasswd.value)) {
+ } else if (input_newpasswd && input_confpasswd && input_newpasswd.value != input_confpasswd.value) {
alert(rcmail.gettext('passwordinconsistency', 'password'));
input_newpasswd.focus();
} else {