summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/password/password.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/password/password.php b/plugins/password/password.php
index 39020a0bf..ec5bac3a9 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -146,10 +146,6 @@ class password extends rcube_plugin
else if ($check_strength && (!preg_match("/[0-9]/", $newpwd) || !preg_match("/[^A-Za-z0-9]/", $newpwd))) {
$rcmail->output->command('display_message', $this->gettext('passwordweak'), 'error');
}
- // password is the same as the old one, do nothing, return success
- else if ($sespwd == $newpwd) {
- $rcmail->output->command('display_message', $this->gettext('successfullysaved'), 'confirmation');
- }
// try to save the password
else if (!($res = $this->_save($curpwd, $newpwd))) {
$rcmail->output->command('display_message', $this->gettext('successfullysaved'), 'confirmation');