api-login change creds fix
This commit is contained in:
parent
70cc307d98
commit
c6266f7674
@ -128,7 +128,7 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface
|
||||
*/
|
||||
public static function findByEmail($email)
|
||||
{
|
||||
return static::findOne(['username' => $email, 'status' => self::STATUS_ACTIVE]);
|
||||
return static::findOne(['email' => $email, 'status' => self::STATUS_ACTIVE]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user