Skip to content

Commit

Permalink
Merge pull request #18 from hphoeksma/main
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesAlias authored May 20, 2023
2 parents c667c1e + d21d304 commit 9814461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Http/Middleware/SecondFactorMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private function registerOriginalRequestForRedirect(ServerRequestInterface $requ
$this->securityContext->setInterceptedRequest($actionRequest);
}

private function log(string|\Stringable $message, array $context = []): void
private function log(string $message, array $context = []): void
{
$this->securityLogger->debug(self::LOGGING_PREFIX . $message, $context);
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/TOTPService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function checkIfOtpIsValid(string $secret, string $submittedOtp):
return $otp->verify($submittedOtp);
}

public function generateQRCodeForTokenAndAccount(TOTP $otp, Account $account): mixed
public function generateQRCodeForTokenAndAccount(TOTP $otp, Account $account): string
{
$secret = $otp->getSecret();

Expand Down

0 comments on commit 9814461

Please sign in to comment.