Skip to content

Commit

Permalink
chg: [style] Addressd some errors reported by phpcs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Nov 10, 2022
1 parent 30417c4 commit d3ffe47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function authenticate($data): array
if (isset($data['verificationCode']) && isset($data['otpSecret'])) {
// activation of 2FA via login page (when user must activate 2FA on a 2FA enforced instance)
$token = $data['otpSecret'].":".$data['verificationCode'];
}
}

$res = $this->authenticationAdapter
->setIdentity($data['login'])
Expand All @@ -85,7 +85,7 @@ public function authenticate($data): array
$token = "2FARequired";

return compact('token', 'user');
} elseif ($res->getCode() == 3) {
} elseif ($res->getCode() == 3) {
$user = $this->authenticationAdapter->getUser();
$token = "2FAToBeConfigured";
// Create a new secret and generate a QRCode
Expand Down

0 comments on commit d3ffe47

Please sign in to comment.