mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
patch for 2FA Verification
This commit is contained in:
parent
98e920a518
commit
d58de8e02c
@ -165,8 +165,11 @@ class TwilioController extends BaseController
|
||||
|
||||
if($verification_check->status == 'approved'){
|
||||
|
||||
if($request->query('validate_only') == 'true')
|
||||
if($request->query('validate_only') == 'true'){
|
||||
$user->verified_phone_number = true;
|
||||
$user->save();
|
||||
return response()->json(['message' => 'SMS verified'], 200);
|
||||
}
|
||||
|
||||
$user->google_2fa_secret = '';
|
||||
$user->sms_verification_code = '';
|
||||
|
Loading…
Reference in New Issue
Block a user