mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Better 2FA implementation on logins
This commit is contained in:
@@ -51,9 +51,13 @@ class AuthRoutes
|
||||
'uses' => 'Auth\LoginController@login',
|
||||
]);
|
||||
|
||||
// Determine if we need to ask for a TOTP Token
|
||||
$router->get('login/totp', [
|
||||
'as' => 'auth.totp',
|
||||
'uses' => 'Auth\LoginController@totp',
|
||||
]);
|
||||
|
||||
$router->post('login/totp', [
|
||||
'uses' => 'Auth\LoginController@checkTotp',
|
||||
'uses' => 'Auth\LoginController@totpCheckpoint',
|
||||
]);
|
||||
|
||||
// Show Password Reset Form
|
||||
|
||||
Reference in New Issue
Block a user