mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code for #1503
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user