2021-06-29 05:02:45 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Http\Controllers\Auth;
|
|
|
|
|
|
|
|
use BookStack\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
class MfaController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Show the view to setup MFA for the current user.
|
|
|
|
*/
|
|
|
|
public function setup()
|
|
|
|
{
|
2021-07-01 05:10:02 +08:00
|
|
|
$userMethods = user()->mfaValues()
|
|
|
|
->get(['id', 'method'])
|
|
|
|
->groupBy('method');
|
|
|
|
return view('mfa.setup', [
|
|
|
|
'userMethods' => $userMethods,
|
|
|
|
]);
|
2021-06-29 05:02:45 +08:00
|
|
|
}
|
|
|
|
}
|