This commit is contained in:
James Cole
2017-02-16 21:01:22 +01:00
parent c8f6b42ce6
commit 8bfcc3315a
3 changed files with 12 additions and 6 deletions

View File

@@ -56,9 +56,9 @@ class PreferencesController extends Controller
{
$domain = $this->getDomain();
/** @noinspection PhpMethodParametersCountMismatchInspection */
$secret = $google2fa->generateSecretKey(16, auth()->user()->id);
$secret = $google2fa->generateSecretKey(32, auth()->user()->id);
Session::flash('two-factor-secret', $secret);
$image = $google2fa->getQRCodeInline('Firefly III at ' . $domain, null, $secret, 150);
$image = $google2fa->getQRCodeInline('Firefly III at ' . $domain, auth()->user()->email, $secret, 150);
return view('preferences.code', compact('image'));