From efb6a6b457ac8e20bbbb39d8a730921850c2751a Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 28 Jun 2021 22:02:45 +0100 Subject: [PATCH] Started barebones work of MFA system --- app/Http/Controllers/Auth/MfaController.php | 29 +++ composer.json | 2 + composer.lock | 221 +++++++++++++++++++- resources/views/mfa/setup.blade.php | 16 ++ routes/web.php | 2 + 5 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 app/Http/Controllers/Auth/MfaController.php create mode 100644 resources/views/mfa/setup.blade.php 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