Skip to content

Commit 4cf678f

Browse files
committed
fix findIdentityByAccessToken githubjeka#1
1 parent 1e329ae commit 4cf678f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest/models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function attributeLabels()
6464
/**
6565
* @inheritdoc
6666
*/
67-
public static function findIdentityByAccessToken($token)
67+
public static function findIdentityByAccessToken($token, $type = null)
6868
{
6969
$user = self::find()->where(['authKey' => $token])->one();
7070
if ($user) {
@@ -160,6 +160,6 @@ public function validateAuthKey($authKey)
160160

161161
public function validatePassword($password)
162162
{
163-
return password_verify($password,$this->password);
163+
return password_verify($password, $this->password);
164164
}
165165
}

0 commit comments

Comments
 (0)