Skip to content

Commit

Permalink
Merge pull request #103 from nextcloud/enh/harden-compliance
Browse files Browse the repository at this point in the history
Else wrong user/password attempts generate an exception
  • Loading branch information
rullzer authored Apr 28, 2020
2 parents bcc84b7 + 9b19c3a commit dc3013c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ComplianceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public function entryControl(string $loginName, string $password) {
foreach ($this->getInstance(IEntryControl::class) as $instance) {
try {
$user = \OC::$server->getUserManager()->get($uid);

if (!($user instanceof IUser)) {
break;
}

$instance->entryControl($user, $password);
} catch (HintException $e) {
throw new LoginException($e->getHint());
Expand Down

0 comments on commit dc3013c

Please sign in to comment.