summaryrefslogtreecommitdiff
path: root/app/Api/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/User.php')
-rw-r--r--app/Api/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/User.php b/app/Api/User.php
index 06e305f2..63c222fe 100644
--- a/app/Api/User.php
+++ b/app/Api/User.php
@@ -42,7 +42,7 @@ class User extends \Kanboard\Core\Base
'role' => $role,
);
- list($valid, ) = $this->user->validateCreation($values);
+ list($valid, ) = $this->userValidator->validateCreation($values);
return $valid ? $this->user->create($values) : false;
}
@@ -94,7 +94,7 @@ class User extends \Kanboard\Core\Base
}
}
- list($valid, ) = $this->user->validateApiModification($values);
+ list($valid, ) = $this->userValidator->validateApiModification($values);
return $valid && $this->user->update($values);
}
}