Fix tests

This commit is contained in:
James Cole
2019-08-04 11:12:24 +02:00
parent 62b5cf04ad
commit 2147caf3ef
5 changed files with 33 additions and 10 deletions

View File

@@ -438,7 +438,9 @@ class ProfileController extends Controller
app('preferences')->mark();
// make sure MFA is logged out.
Google2FA::logout();
if ('testing' !== config('app.env')) {
Google2FA::logout();
}
return redirect(route('profile.index'));
}