summaryrefslogtreecommitdiff
path: root/app/php/user/DbUser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/user/DbUser.php')
-rw-r--r--app/php/user/DbUser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/php/user/DbUser.php b/app/php/user/DbUser.php
index ce4da4c..d636e8b 100644
--- a/app/php/user/DbUser.php
+++ b/app/php/user/DbUser.php
@@ -14,13 +14,13 @@ class DbUser extends TDbUser {
public function getDbRecord() {
if (!$this->_record) {
- $this->_record = User::finder()->findByLogin($this->Name);
+ $this->_record = UserFacade::getInstance()->findByLogin($this->Name);
}
return $this->_record;
}
public function createUser($username) {
- $dbUser = User::finder()->findByLogin($username);
+ $dbUser = UserFacade::getInstance()->findByLogin($username);
if (!$dbUser) {
return NULL;
}
@@ -35,7 +35,7 @@ class DbUser extends TDbUser {
}
public function validateUser($login, $password) {
- $user = User::finder()->findByLogin($login);
+ $user = UserFacade::getInstance()->findByLogin($login);
$dbPassword = $user ? $user->Password : '';
if (UserFacade::getInstance()->verifyPassword($password, $dbPassword)
&& $user) {