]> BookStack Code Mirror - bookstack/blobdiff - app/Users/Controllers/UserAccountController.php
My Account: Covered profile and auth pages with tests
[bookstack] / app / Users / Controllers / UserAccountController.php
index 6bf23df47ef536b7ebe85eff752b2df581f06181..d9cb58f8cdf6b4ea8592381650ae1f45ff429990 100644 (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'));