summaryrefslogtreecommitdiff
path: root/app/Controller/UserCredentialController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/UserCredentialController.php')
-rw-r--r--app/Controller/UserCredentialController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/UserCredentialController.php b/app/Controller/UserCredentialController.php
index 3310aaa8..4021dc37 100644
--- a/app/Controller/UserCredentialController.php
+++ b/app/Controller/UserCredentialController.php
@@ -44,9 +44,9 @@ class UserCredentialController extends BaseController
list($valid, $errors) = $this->userValidator->validatePasswordModification($values);
if ($valid) {
- if ($this->user->update($values)) {
+ if ($this->userModel->update($values)) {
$this->flash->success(t('Password modified successfully.'));
- $this->userLocking->resetFailedLogin($user['username']);
+ $this->userLockingModel->resetFailedLogin($user['username']);
} else {
$this->flash->failure(t('Unable to change the password.'));
}
@@ -95,7 +95,7 @@ class UserCredentialController extends BaseController
list($valid, $errors) = $this->userValidator->validateModification($values);
if ($valid) {
- if ($this->user->update($values)) {
+ if ($this->userModel->update($values)) {
$this->flash->success(t('User updated successfully.'));
} else {
$this->flash->failure(t('Unable to update your user.'));