From b343adf3cb316b15d6751dc723f8e9348a3e4502 Mon Sep 17 00:00:00 2001
From: Steffen185 <steffen.weber@gmail.com>
Date: Tue, 02 Apr 2013 02:41:29 -0400
Subject: [PATCH] Use new config option "password_force_save"

---
 plugins/password/password.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/password/password.php b/plugins/password/password.php
index ec5bac3..43cab7f 100644
--- a/plugins/password/password.php
+++ b/plugins/password/password.php
@@ -147,7 +147,7 @@
                 $rcmail->output->command('display_message', $this->gettext('passwordweak'), 'error');
             }
             // try to save the password
-            else if (!($res = $this->_save($curpwd, $newpwd))) {
+            else if ($sespwd == $newpwd && !$rcmail->config->get('password_force_save')) {
                 $rcmail->output->command('display_message', $this->gettext('successfullysaved'), 'confirmation');
 
                 // allow additional actions after password change (e.g. reset some backends)

--
Gitblit v1.9.1