1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Started on some MFA access-time checks

Discovered some difficult edge cases:
- User image loading in header bar when using local_secure storage
- 404s showing user-specific visible content due to content listing on
  404 page since user is in semi-logged in state. Maybe need to go
  through and change up how logins are handled to centralise and
  provide us better control at login time to prevent any auth level.
This commit is contained in:
Dan Brown
2021-07-16 23:23:36 +01:00
parent f696aa5eea
commit 78f9c01519
6 changed files with 120 additions and 5 deletions

View File

@ -37,4 +37,18 @@ class MfaController extends Controller
return redirect('/mfa/setup');
}
/**
* Show the page to start an MFA verification.
*/
public function verify()
{
$userMethods = user()->mfaValues()
->get(['id', 'method'])
->groupBy('method');
return view('mfa.verify', [
'userMethods' => $userMethods,
]);
}
}