diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-08-19 18:29:13 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-08-19 18:29:13 -0700 |
commit | 11b4715d2953dbd90a13fc8d20d9757701397e8c (patch) | |
tree | 73340d57859b18f932fe3f66c4d91e2b5ae446cd /app/Model/User.php | |
parent | f8071e7d4adf9d5fb1f255056aef98d5c3600c17 (diff) |
Fix bug for password change
Diffstat (limited to 'app/Model/User.php')
-rw-r--r-- | app/Model/User.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Model/User.php b/app/Model/User.php index cfabd342..d019dfcc 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -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 { |