My Account: Covered profile and auth pages with tests

This commit is contained in:
Dan Brown
2023-10-19 16:06:59 +01:00
parent f55e7ca3c9
commit ce53f641ad
3 changed files with 167 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class UserAccountController extends Controller
*/
public function showAuth(SocialAuthService $socialAuthService)
{
$mfaMethods = user()->mfaValues->groupBy('method');
$mfaMethods = user()->mfaValues()->get()->groupBy('method');
$this->setPageTitle(trans('preferences.auth'));