diff options
author | emkael <emkael@tlen.pl> | 2016-05-06 15:51:19 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-06 15:51:19 +0200 |
commit | b335c69d6e7439fe9b91f4af138e386934631433 (patch) | |
tree | 53ac6557fc9ee146ead99db3331446c3bda45350 /app/php | |
parent | 257109251802053252633c5c8f2cc3cdf22dc983 (diff) |
* fixed duplicate login detection
Diffstat (limited to 'app/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) { |