Commit 6ec0b60a by Serge Postrash

IdentityInterface::findIdentity should return active users

``` interface IdentityInterface { /** * Finds an identity by the given ID. * @param string|integer $id the ID to be looked for * @return IdentityInterface the identity object that matches the given ID. * Null should be returned if such an identity cannot be found * or the identity is not in an active state (disabled, deleted, etc.) */ public static function findIdentity($id); ```
parent 2661ec2b
......@@ -65,7 +65,7 @@ class User extends ActiveRecord implements IdentityInterface
*/
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