Commit 67f01fb6 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3643 Changed the way password history is checked

Showing with 1 addition and 1 deletion
+1 -1
......@@ -248,7 +248,7 @@ class password extends plugin
foreach ($attrs['pwdHistory'] as $pwdHistory) {
$pwdHistory = explode('#', $pwdHistory, 4);
$method = passwordMethod::get_method($pwdHistory[3], $user);
if (($method !== NULL) && $method->checkPassword($new_password, $pwdHistory[3])) {
if (($method !== NULL) && $method->checkPassword($new_password, $pwdHistory[3])) {
return _('Password is in history of old passwords');
}
}
......
  • bmortier @bmortier

    mentioned in issue #1213

    By Côme Chilliet on 2017-09-02T15:18:05 (imported from GitLab)

    ·

    mentioned in issue #1213

    By Côme Chilliet on 2017-09-02T15:18:05 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment