diff options
Diffstat (limited to 'app/php/facades/UserFacade.php')
-rw-r--r-- | app/php/facades/UserFacade.php | 2 |
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) { |