Fix bug for password change

This commit is contained in:
Frédéric Guillot
2014-08-19 18:29:13 -07:00
parent f8071e7d4a
commit 11b4715d29
3 changed files with 24 additions and 14 deletions

View File

@@ -307,9 +307,7 @@ class User extends Base
if ($v->execute()) {
// Check password
list($authenticated,) = $this->authenticate($_SESSION['user']['username'], $values['current_password']);
if ($authenticated) {
if ($this->authentication->authenticate($_SESSION['user']['username'], $values['current_password'])) {
return array(true, array());
}
else {