mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 06:43:23 +00:00
Correctly save 2fa secret.
This commit is contained in:
@@ -96,7 +96,7 @@ class PreferencesController extends Controller
|
|||||||
public function postCode(TokenFormRequest $request)
|
public function postCode(TokenFormRequest $request)
|
||||||
{
|
{
|
||||||
Preferences::set('twoFactorAuthEnabled', 1);
|
Preferences::set('twoFactorAuthEnabled', 1);
|
||||||
Preferences::set('twoFactorAuthSecret', $request->input('secret'));
|
Preferences::set('twoFactorAuthSecret', Session::get('two-factor-secret'));
|
||||||
|
|
||||||
Session::flash('success', 'Preferences saved!');
|
Session::flash('success', 'Preferences saved!');
|
||||||
Preferences::mark();
|
Preferences::mark();
|
||||||
|
Reference in New Issue
Block a user