mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for 2FA
This commit is contained in:
parent
aef2270f05
commit
ae62bf63c6
@ -53,7 +53,7 @@ class TwoFactorController extends BaseController
|
||||
$secret = request()->input('secret');
|
||||
$oneTimePassword = request()->input('one_time_password');
|
||||
|
||||
if($google2fa->verifyKey($secret, $oneTimePassword) && $user->phone && $user->confirmed){
|
||||
if($google2fa->verifyKey($secret, $oneTimePassword) && $user->phone && $user->email_verified_at){
|
||||
|
||||
$user->google_2fa_secret = encrypt($secret);
|
||||
$user->save();
|
||||
|
Loading…
Reference in New Issue
Block a user