From: Dan Brown Date: Mon, 28 Jun 2021 21:02:45 +0000 (+0100) Subject: Started barebones work of MFA system X-Git-Tag: v21.08~1^2~26^2~24 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/efb6a6b457ac8e20bbbb39d8a730921850c2751a Started barebones work of MFA system --- diff --git a/app/Http/Controllers/Auth/MfaController.php b/app/Http/Controllers/Auth/MfaController.php new file mode 100644 index 000000000..1d0dbd1a4 --- /dev/null +++ b/app/Http/Controllers/Auth/MfaController.php @@ -0,0 +1,29 @@ + + +
+

Setup Multi-Factor Authentication

+

+ Setup multi-factor authentication as an extra layer of security + for your user account. + To use multi-factor authentication you'll need a mobile application + that supports TOTP such as Google Authenticator, Authy or Microsoft Authenticator. +

+
+ +@stop diff --git a/routes/web.php b/routes/web.php index bc9705e10..7807d5477 100644 --- a/routes/web.php +++ b/routes/web.php @@ -223,6 +223,8 @@ Route::group(['middleware' => 'auth'], function () { Route::get('/roles/{id}', 'RoleController@edit'); Route::put('/roles/{id}', 'RoleController@update'); }); + + Route::get('/mfa/setup', 'Auth\MfaController@setup'); }); // Social auth routes