Commit 6b48c9ce by Alexander Makarov

Merge pull request #4216 from SDKiller/patch-3

IdentityInterface::findIdentity should return active users
parents 2661ec2b 6ec0b60a
...@@ -65,7 +65,7 @@ class User extends ActiveRecord implements IdentityInterface ...@@ -65,7 +65,7 @@ class User extends ActiveRecord implements IdentityInterface
*/ */
public static function findIdentity($id) public static function findIdentity($id)
{ {
return static::findOne($id); return static::findOne(['id' => $id, 'status' => self::STATUS_ACTIVE]);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment