@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | * @param IRequest $request |
| 304 | 304 | * @throws LoginException |
| 305 | 305 | * @throws PasswordLoginForbiddenException |
| 306 | - * @return boolean |
|
| 306 | + * @return boolean|null |
|
| 307 | 307 | */ |
| 308 | 308 | public function logClientIn($user, $password, IRequest $request) { |
| 309 | 309 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -346,6 +346,9 @@ discard block |
||
| 346 | 346 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | + /** |
|
| 350 | + * @param string $username |
|
| 351 | + */ |
|
| 349 | 352 | protected function isTwoFactorEnforced($username) { |
| 350 | 353 | Util::emitHook( |
| 351 | 354 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -857,6 +860,9 @@ discard block |
||
| 857 | 860 | } |
| 858 | 861 | } |
| 859 | 862 | |
| 863 | + /** |
|
| 864 | + * @param IRequest $request |
|
| 865 | + */ |
|
| 860 | 866 | public function verifyAuthHeaders($request) { |
| 861 | 867 | foreach ($this->getAuthModules(true) as $module) { |
| 862 | 868 | $user = $module->auth($request); |
@@ -876,7 +882,7 @@ discard block |
||
| 876 | 882 | } |
| 877 | 883 | |
| 878 | 884 | /** |
| 879 | - * @param $includeBuiltIn |
|
| 885 | + * @param boolean $includeBuiltIn |
|
| 880 | 886 | * @return \Generator | IAuthModule[] |
| 881 | 887 | * @throws Exception |
| 882 | 888 | */ |