Better 2FA implementation on logins
This commit is contained in:
parent
a1a81ac980
commit
4abdee0efb
5 changed files with 106 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue