@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param RequestInterface $request |
| 61 | 61 | * @param ResponseInterface $response |
| 62 | - * @return bool|void |
|
| 62 | + * @return boolean |
|
| 63 | 63 | */ |
| 64 | 64 | function httpGet(RequestInterface $request, ResponseInterface $response) { |
| 65 | 65 | |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * |
| 276 | 276 | * @param string $uid |
| 277 | 277 | * @param string $password |
| 278 | - * @return boolean|null |
|
| 278 | + * @return boolean |
|
| 279 | 279 | * @throws LoginException |
| 280 | 280 | */ |
| 281 | 281 | public function login($uid, $password) { |
@@ -375,6 +375,9 @@ discard block |
||
| 375 | 375 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | + /** |
|
| 379 | + * @param string $username |
|
| 380 | + */ |
|
| 378 | 381 | protected function isTwoFactorEnforced($username) { |
| 379 | 382 | Util::emitHook( |
| 380 | 383 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -449,6 +452,9 @@ discard block |
||
| 449 | 452 | return false; |
| 450 | 453 | } |
| 451 | 454 | |
| 455 | + /** |
|
| 456 | + * @param string $token |
|
| 457 | + */ |
|
| 452 | 458 | private function loginWithToken($token) { |
| 453 | 459 | try { |
| 454 | 460 | $dbToken = $this->tokenProvider->getToken($token); |