Fixes #3383: Added $type parameter to IdentityInterface::findIdentityByAccessToken()

This commit is contained in:
Qiang Xue 2014-05-06 18:45:18 -04:00
parent cbedf7ad96
commit c964a753d8

View File

@ -38,7 +38,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
/** /**
* @inheritdoc * @inheritdoc
*/ */
public static function findIdentityByAccessToken($token) public static function findIdentityByAccessToken($token, $type = null)
{ {
foreach (self::$users as $user) { foreach (self::$users as $user) {
if ($user['accessToken'] === $token) { if ($user['accessToken'] === $token) {