Key without lengt. [skip ci]

This commit is contained in:
James Cole 2017-10-22 20:22:02 +02:00
parent 1a325f4978
commit 3f681bf71b
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -67,7 +67,7 @@ class PreferencesController extends Controller
public function code(Google2FA $google2fa)
{
$domain = $this->getDomain();
$secret = $google2fa->generateSecretKey(16);
$secret = $google2fa->generateSecretKey();
Session::flash('two-factor-secret', $secret);
$image = $google2fa->getQRCodeInline('Firefly III at ' . $domain, auth()->user()->email, $secret, 150);