mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Override phone number with international format
This commit is contained in:
parent
1368da0c90
commit
27954d1ee2
@ -66,9 +66,9 @@ class HasValidPhoneNumber implements Rule
|
||||
|
||||
$user = auth()->user();
|
||||
|
||||
request()->merge([
|
||||
'phone' => $phone_number->phoneNumber,
|
||||
]);
|
||||
$json = request()->json()->all();
|
||||
$json['phone'] = $phone_number->phoneNumber;
|
||||
request()->json()->replace($json);
|
||||
|
||||
$user->verified_phone_number = true;
|
||||
$user->save();
|
||||
|
Loading…
Reference in New Issue
Block a user