summaryrefslogtreecommitdiff
path: root/app/Model/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/User.php')
-rw-r--r--app/Model/User.php4
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 {