mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Minor fixes - add referral code to user transformer
This commit is contained in:
parent
1e0f250052
commit
38114d0c48
@ -46,7 +46,7 @@ class CheckoutWebhook implements ShouldQueue
|
||||
|
||||
public function handle()
|
||||
{
|
||||
nlog("Checkout Webhook");
|
||||
// nlog("Checkout Webhook");
|
||||
|
||||
MultiDB::findAndSetDbByCompanyKey($this->company_key);
|
||||
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user