Merge pull request #63 from Steffen185/patch-1
Save new password even if it has not changed (optional)
| | |
| | | //$rcmail_config['password_hosts'] = array('mail.example.com', 'mail2.example.org'); |
| | | $rcmail_config['password_hosts'] = null; |
| | | |
| | | // Enables saving the new password even if it matches the old password. Useful |
| | | // for upgrading the stored passwords after the encryption scheme has changed. |
| | | $rcmail_config['password_force_save'] = false; |
| | | |
| | | |
| | | // SQL Driver options |
| | | // ------------------ |
| | |
| | | $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) { |
| | | else if ($sespwd == $newpwd && !$rcmail->config->get('password_force_save')) { |
| | | $rcmail->output->command('display_message', $this->gettext('successfullysaved'), 'confirmation'); |
| | | } |
| | | // try to save the password |