From 11b4715d2953dbd90a13fc8d20d9757701397e8c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 19 Aug 2014 18:29:13 -0700 Subject: Fix bug for password change --- app/Model/User.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/Model/User.php') 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 { -- cgit v1.2.3