@@ -193,7 +193,7 @@ |
||
193 | 193 | * @internal |
194 | 194 | * @param string $loginName |
195 | 195 | * @param string $password |
196 | - * @return mixed the User object on success, false otherwise |
|
196 | + * @return IUser the User object on success, false otherwise |
|
197 | 197 | */ |
198 | 198 | public function checkPasswordNoLogging($loginName, $password) { |
199 | 199 | $loginName = str_replace("\0", '', $loginName); |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * @param IUser $user |
340 | 340 | * @param array $loginDetails |
341 | 341 | * @param bool $regenerateSessionId |
342 | - * @return true returns true if login successful or an exception otherwise |
|
342 | + * @return boolean returns true if login successful or an exception otherwise |
|
343 | 343 | * @throws LoginException |
344 | 344 | */ |
345 | 345 | public function completeLogin(IUser $user, array $loginDetails, $regenerateSessionId = true) { |
@@ -446,6 +446,9 @@ discard block |
||
446 | 446 | return $this->config->getSystemValue('token_auth_enforced', false); |
447 | 447 | } |
448 | 448 | |
449 | + /** |
|
450 | + * @param string $username |
|
451 | + */ |
|
449 | 452 | protected function isTwoFactorEnforced($username) { |
450 | 453 | Util::emitHook( |
451 | 454 | '\OCA\Files_Sharing\API\Server2Server', |