BookStack/app/Http/Controllers/Auth/MfaController.php

22 lines
452 B
PHP
Raw Normal View History

2021-06-28 17:02:45 -04: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()
{
$userMethods = user()->mfaValues()
->get(['id', 'method'])
->groupBy('method');
return view('mfa.setup', [
'userMethods' => $userMethods,
]);
2021-06-28 17:02:45 -04:00
}
}