api-login change creds fix

This commit is contained in:
Денис Хорош 2023-12-20 14:15:19 +03:00
parent 70cc307d98
commit c6266f7674

View File

@ -128,7 +128,7 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface
*/ */
public static function findByEmail($email) public static function findByEmail($email)
{ {
return static::findOne(['username' => $email, 'status' => self::STATUS_ACTIVE]); return static::findOne(['email' => $email, 'status' => self::STATUS_ACTIVE]);
} }
/** /**