mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Override phone number with international format
This commit is contained in:
parent
97e65570fc
commit
e59cd01996
@ -62,7 +62,11 @@ class HasValidPhoneNumber implements Rule
|
||||
->fetch(["countryCode" => $countryCode]);
|
||||
|
||||
$user = auth()->user();
|
||||
$user->phone = $phone_number->phoneNumber;
|
||||
|
||||
request()->merge([
|
||||
'phone' => $phone_number->phoneNumber,
|
||||
]);
|
||||
|
||||
$user->verified_phone_number = true;
|
||||
$user->save();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user