This commit is contained in:
James Cole
2018-06-23 17:59:37 +02:00
parent 3a71bd01fb
commit 793cfcb2c5
3 changed files with 6 additions and 1 deletions

View File

@@ -107,9 +107,10 @@ class ProfileController extends Controller
$domain = $this->getDomain();
$secret = Google2FA::generateSecretKey();
session()->flash('two-factor-secret', $secret);
$image = Google2FA::getQRCodeInline($domain, auth()->user()->email, $secret, 200);
return view('profile.code', compact('image'));
return view('profile.code', compact('image','secret'));
}
/**