1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Override phone number with international format

This commit is contained in:
David Bomba 2022-11-03 17:12:13 +11:00
parent 97e65570fc
commit e59cd01996

View File

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