1
0
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:
David Bomba 2022-11-03 17:16:06 +11:00
parent 1368da0c90
commit 27954d1ee2

View File

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