My Account: Extracted/tweaked profile text, removed old index

This commit is contained in:
Dan Brown
2023-10-18 17:53:58 +01:00
parent c1b01639c1
commit 03c44b3992
7 changed files with 26 additions and 97 deletions

View File

@ -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');
}
/**