@@ -83,6 +83,9 @@ |
||
| 83 | 83 | $this->{$this->passwordHashAttribute} = Yii::$app->security->generatePasswordHash($password); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $password |
|
| 88 | + */ |
|
| 86 | 89 | protected static function judgePasswordHash($password) |
| 87 | 90 | { |
| 88 | 91 | return strpos($password, '$2y$') !== false; |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * Show User Information. |
| 103 | - * @param User|string|integer $user |
|
| 103 | + * @param User $user |
|
| 104 | 104 | */ |
| 105 | 105 | public function actionShow($user, $guid = false, $pass_hash = false, $access_token = false, $auth_key = false) |
| 106 | 106 | { |