mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
refactoring
This commit is contained in:
parent
e894abf0ed
commit
cbcb35aba4
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ if (isset($_POST['submit']) || isset($_POST['sig_response']) // WebAuthn
|
|||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
logNewMessage(LOG_WARNING, '2-factor verification failed: ' . $e->getMessage());
|
||||
$errorMessage = $e->getMessage();
|
||||
if ($e->getPrevious() !== null) {
|
||||
$errorMessage .= ' - ' . $e->getPrevious()->getMessage();
|
||||
}
|
||||
logNewMessage(LOG_WARNING, '2-factor verification failed: ' . $errorMessage);
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
}
|
||||
if ($twoFactorValid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue