api-login change creds fix

This commit is contained in:
dkhorosh committed 2023-12-20 14:15:19 +03:00
1 parent 70cc307d98
commit c6266f7674
1 file changed
+1 -1
+1 -1
View File
@@ -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]);
}
/**