Improvements of the 2FA validation code UI

This commit is contained in:
Pinga 2024-02-26 14:51:36 +02:00
parent b46ff2286c
commit 6515bcda80
5 changed files with 162 additions and 29 deletions

View file

@ -26,6 +26,7 @@ $app->get('/', HomeController::class .':index')->setName('index');
$app->group('', function ($route) {
$route->get('/login', AuthController::class . ':createLogin')->setName('login');
$route->map(['GET', 'POST'], '/login/verify', AuthController::class . ':verify2FA')->setName('verify2FA');
$route->post('/login', AuthController::class . ':login');
$route->post('/webauthn/login/challenge', AuthController::class . ':getLoginChallenge')->setName('webauthn.login.challenge');
$route->post('/webauthn/login/verify', AuthController::class . ':verifyLogin')->setName('webauthn.login.verify');