summaryrefslogtreecommitdiff
path: root/app/php/facades/UserFacade.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/facades/UserFacade.php')
-rw-r--r--app/php/facades/UserFacade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/php/facades/UserFacade.php b/app/php/facades/UserFacade.php
index c09032c..1fddb28 100644
--- a/app/php/facades/UserFacade.php
+++ b/app/php/facades/UserFacade.php
@@ -31,7 +31,7 @@ class UserFacade extends Facade {
}
public function checkForUsername($login) {
- return !User::finder()->countByLogin($login);
+ return !User::finder()->count('login = ?', $login);
}
public function registerUser($login, $password, $admin) {