@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * @param IRequest $request |
| 301 | 301 | * @throws LoginException |
| 302 | 302 | * @throws PasswordLoginForbiddenException |
| 303 | - * @return boolean |
|
| 303 | + * @return boolean|null |
|
| 304 | 304 | */ |
| 305 | 305 | public function logClientIn($user, $password, IRequest $request) { |
| 306 | 306 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -340,6 +340,9 @@ discard block |
||
| 340 | 340 | return $this->config->getSystemValue('token_auth_enforced', false); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $username |
|
| 345 | + */ |
|
| 343 | 346 | protected function isTwoFactorEnforced($username) { |
| 344 | 347 | Util::emitHook( |
| 345 | 348 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -27,13 +27,8 @@ |
||
| 27 | 27 | use OCA\Files_External\Lib\DefinitionParameter; |
| 28 | 28 | use OCA\Files_External\Service\BackendService; |
| 29 | 29 | use Symfony\Component\Console\Command\Command; |
| 30 | -use Symfony\Component\Console\Helper\Table; |
|
| 31 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 32 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 33 | 30 | use Symfony\Component\Console\Input\InputArgument; |
| 34 | 31 | use Symfony\Component\Console\Input\InputInterface; |
| 35 | -use Symfony\Component\Console\Input\InputOption; |
|
| 36 | -use Symfony\Component\Console\Input\Input; |
|
| 37 | 32 | use Symfony\Component\Console\Output\OutputInterface; |
| 38 | 33 | |
| 39 | 34 | class Backends extends Base { |