Fixes #3383: Added $type
parameter to IdentityInterface::findIdentityByAccessToken()
This commit is contained in:
parent
cbedf7ad96
commit
c964a753d8
@ -38,7 +38,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function findIdentityByAccessToken($token)
|
||||
public static function findIdentityByAccessToken($token, $type = null)
|
||||
{
|
||||
foreach (self::$users as $user) {
|
||||
if ($user['accessToken'] === $token) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user