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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/php/facades/UserFacade.php b/app/php/facades/UserFacade.php
index 696f77f..c09032c 100644
--- a/app/php/facades/UserFacade.php
+++ b/app/php/facades/UserFacade.php
@@ -26,6 +26,10 @@ class UserFacade extends Facade {
return new TimezoneDTO(date_default_timezone_get());
}
+ public function findByLogin($login) {
+ return User::finder()->findByLogin($login);
+ }
+
public function checkForUsername($login) {
return !User::finder()->countByLogin($login);
}