1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Minor fixes - add referral code to user transformer

This commit is contained in:
David Bomba 2024-06-16 19:16:42 +10:00
parent 1e0f250052
commit 38114d0c48
3 changed files with 7 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class CheckoutWebhook implements ShouldQueue
public function handle()
{
nlog("Checkout Webhook");
// nlog("Checkout Webhook");
MultiDB::findAndSetDbByCompanyKey($this->company_key);

View File

@ -63,8 +63,9 @@ class UserTransformer extends EntityTransformer
'has_password' => (bool) empty($user->password) ? false : true,
'oauth_user_token' => empty($user->oauth_user_token) ? '' : '***',
'verified_phone_number' => (bool) $user->verified_phone_number,
'language_id' => (string) $user->language_id ?? '',
'language_id' => (string) $user->language_id ?: '',
'user_logged_in_notification' => (bool) $user->user_logged_in_notification,
'referral_code' => (string) $user->referral_code,
];
}

View File

@ -14,7 +14,10 @@
@endphp
@section('gateway_head')
<meta http-equiv="Content-Security-Policy" content="
img-src 'self' https://c.paypal.com https://b.stats.paypal.com;
frame-src 'self' https://c.paypal.com;
script-src 'self' https://c.paypal.com;">
@endsection
@section('gateway_content')