Better 2FA implementation on logins

This commit is contained in:
Dane Everitt 2017-02-01 22:58:48 -05:00
parent a1a81ac980
commit 4abdee0efb
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 106 additions and 25 deletions

View file

@ -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