@@ -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; |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Show User Information. |
| 113 | - * @param User|string|integer $user User ID. |
|
| 113 | + * @param User $user User ID. |
|
| 114 | 114 | * @param boolean $guid Show GUID? |
| 115 | 115 | * @param boolean $passHash Show PasswordH Hash? |
| 116 | 116 | * @param boolean $accessToken Show Access Token? |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use yii\console\Controller; |
| 19 | 19 | use yii\console\Exception; |
| 20 | 20 | use Yii; |
| 21 | -use yii\helpers\Console; |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * The simple operations associated with User. |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * Logout action. |
| 91 | 91 | * |
| 92 | - * @return string |
|
| 92 | + * @return \yii\web\Response |
|
| 93 | 93 | */ |
| 94 | 94 | public function actionLogout() |
| 95 | 95 | { |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | /** |
| 104 | 104 | * Finds user. |
| 105 | 105 | * |
| 106 | - * @return User|null |
|
| 106 | + * @return boolean |
|
| 107 | 107 | */ |
| 108 | 108 | public function getUser() |
| 109 | 109 | { |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | /** |
| 200 | 200 | * Deregister User. |
| 201 | 201 | * @param string $id User ID. |
| 202 | - * @return string |
|
| 202 | + * @return Response |
|
| 203 | 203 | * @throws ServerErrorHttpException |
| 204 | 204 | * @throws ForbiddenHttpException |
| 205 | 205 | */ |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Create a registration invitation instance. |
| 74 | - * @param string|User $invitee The invited person. |
|
| 74 | + * @param UserInvitationRegistrationTrait $invitee The invited person. |
|
| 75 | 75 | * @return Registration |
| 76 | 76 | */ |
| 77 | 77 | public function createInvitationRegistration($invitee) |