@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * StorageTimeoutException constructor. |
| 31 | 31 | * |
| 32 | 32 | * @param string $message |
| 33 | - * @param int $code |
|
| 34 | 33 | * @param \Exception $previous |
| 35 | 34 | * @since 9.0.0 |
| 36 | 35 | */ |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * StorageTimeoutException constructor. |
| 31 | 31 | * |
| 32 | 32 | * @param string $message |
| 33 | - * @param int $code |
|
| 34 | 33 | * @param \Exception $previous |
| 35 | 34 | * @since 9.0.0 |
| 36 | 35 | */ |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | * |
| 293 | 293 | * @param string $uid |
| 294 | 294 | * @param string $password |
| 295 | - * @return boolean|null |
|
| 295 | + * @return boolean |
|
| 296 | 296 | * @throws LoginException |
| 297 | 297 | */ |
| 298 | 298 | 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', |
@@ -446,6 +449,9 @@ discard block |
||
| 446 | 449 | return false; |
| 447 | 450 | } |
| 448 | 451 | |
| 452 | + /** |
|
| 453 | + * @param string $uid |
|
| 454 | + */ |
|
| 449 | 455 | private function loginWithToken($uid) { |
| 450 | 456 | // TODO: $this->manager->emit('\OC\User', 'preTokenLogin', array($uid)); |
| 451 | 457 | $user = $this->manager->get($uid); |