Skip to content

Commit

Permalink
Update core/Middleware/TwoFactorMiddleware.php
Browse files Browse the repository at this point in the history
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
  • Loading branch information
shdehnavi and come-nc authored Jul 18, 2023
1 parent 30282fc commit 487ebc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Middleware/TwoFactorMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private function checkTwoFactor(Controller $controller, string $methodName, IUse
}
}

public function afterException($controller, $methodName, Exception $exception): RedirectResponse {
public function afterException(Controller $controller, string $methodName, Exception $exception): RedirectResponse {
if ($exception instanceof TwoFactorAuthRequiredException) {
$params = [];
if (isset($this->request->server['REQUEST_URI'])) {
Expand Down

0 comments on commit 487ebc4

Please sign in to comment.