1
0
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:
David Bomba 2021-03-16 22:47:14 +11:00
parent aef2270f05
commit ae62bf63c6

View File

@ -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();