@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * @throws \InvalidArgumentException |
| 324 | 324 | * @throws LoginException |
| 325 | 325 | * @throws PasswordLoginForbiddenException |
| 326 | - * @return boolean |
|
| 326 | + * @return boolean|null |
|
| 327 | 327 | */ |
| 328 | 328 | public function logClientIn($user, $password, IRequest $request) { |
| 329 | 329 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -366,6 +366,9 @@ discard block |
||
| 366 | 366 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | + /** |
|
| 370 | + * @param string $username |
|
| 371 | + */ |
|
| 369 | 372 | protected function isTwoFactorEnforced($username) { |
| 370 | 373 | Util::emitHook( |
| 371 | 374 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -988,6 +991,9 @@ discard block |
||
| 988 | 991 | } |
| 989 | 992 | } |
| 990 | 993 | |
| 994 | + /** |
|
| 995 | + * @param IRequest $request |
|
| 996 | + */ |
|
| 991 | 997 | public function verifyAuthHeaders($request) { |
| 992 | 998 | $shallLogout = false; |
| 993 | 999 | try { |
@@ -1019,7 +1025,7 @@ discard block |
||
| 1019 | 1025 | } |
| 1020 | 1026 | |
| 1021 | 1027 | /** |
| 1022 | - * @param $includeBuiltIn |
|
| 1028 | + * @param boolean $includeBuiltIn |
|
| 1023 | 1029 | * @return \Generator | IAuthModule[] |
| 1024 | 1030 | * @throws Exception |
| 1025 | 1031 | */ |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCP\Authentication\IAuthModule; |
| 31 | 31 | use OCP\IRequest; |
| 32 | 32 | use OCP\ISession; |
| 33 | -use OCP\IUser; |
|
| 34 | 33 | use OCP\IUserManager; |
| 35 | 34 | use OCP\Session\Exceptions\SessionNotAvailableException; |
| 36 | 35 | |