Skip to content

Commit 7e177d9

Browse files
committed
Revert "allow changing identityClass in config. [issue101]"
This reverts commit 9ab9f9f.
1 parent 9ab9f9f commit 7e177d9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

models/forms/LoginForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ public function getUser()
105105
{
106106
if ( $this->_user === false )
107107
{
108-
$u = new \Yii::$app->user->identityClass;
109-
$this->_user = ($u instanceof User ? $u->findByUsername($this->username) : User::findByUsername($this->username));
108+
$this->_user = User::findByUsername($this->username);
110109
}
111110

112111
return $this->_user;

0 commit comments

Comments
 (0)