mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-24 22:51:23 +08:00
My Account: Extracted/tweaked profile text, removed old index
This commit is contained in:
@ -26,15 +26,13 @@ class UserAccountController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overview for user preferences.
|
||||
* Redirect the root my-account path to the main/first category.
|
||||
* Required as a controller method, instead of the Route::redirect helper,
|
||||
* to ensure the URL is generated correctly.
|
||||
*/
|
||||
public function index()
|
||||
public function redirect()
|
||||
{
|
||||
$mfaMethods = user()->mfaValues->groupBy('method');
|
||||
|
||||
return view('users.account.index', [
|
||||
'mfaMethods' => $mfaMethods,
|
||||
]);
|
||||
return redirect('/my-account/profile');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user