Fix bug where password_dovecotpw_with_method setting could be ignored (#6436)

pull/192/merge
Aleksander Machniak 6 years ago
parent 6d37f3b6ef
commit bae58951bf

@ -1,9 +1,10 @@
CHANGELOG Roundcube Webmail
===========================
- Plugin API: Added 'raise_error' hook (#6199)
- Managesieve: Added support for 'editheader' extension - RFC5293 (#5954)
- Password: Added 'modoboa' driver (#6361)
- Plugin API: Added 'raise_error' hook (#6199)
- Password: Fix bug where password_dovecotpw_with_method setting could be ignored (#6436)
- Fix so invalid smtp_helo_host is never used, fallback to localhost (#6408)
- Fix custom logo size in Elastic (#6424)
- Fix listing the same attachment multiple times on forwarded messages

@ -428,12 +428,10 @@ class password extends rcube_plugin
$rcmail = rcmail::get_instance();
$prefix = '';
$crypted = '';
$default = false;
if (empty($method) || $method == 'default') {
$method = $rcmail->config->get('password_algorithm');
$prefixed = $rcmail->config->get('password_algorithm_prefix');
$default = true;
}
else if ($method == 'crypt') { // deprecated
if (!($method = $rcmail->config->get('password_crypt_hash'))) {
@ -622,7 +620,7 @@ class password extends rcube_plugin
return false;
}
if (!$default) {
if (!$prefixed) {
$prefixed = (bool) $rcmail->config->get('password_dovecotpw_with_method');
}

Loading…
Cancel
Save