mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
public function handle()
|
||||||
{
|
{
|
||||||
nlog("Checkout Webhook");
|
// nlog("Checkout Webhook");
|
||||||
|
|
||||||
MultiDB::findAndSetDbByCompanyKey($this->company_key);
|
MultiDB::findAndSetDbByCompanyKey($this->company_key);
|
||||||
|
|
||||||
|
@ -63,8 +63,9 @@ class UserTransformer extends EntityTransformer
|
|||||||
'has_password' => (bool) empty($user->password) ? false : true,
|
'has_password' => (bool) empty($user->password) ? false : true,
|
||||||
'oauth_user_token' => empty($user->oauth_user_token) ? '' : '***',
|
'oauth_user_token' => empty($user->oauth_user_token) ? '' : '***',
|
||||||
'verified_phone_number' => (bool) $user->verified_phone_number,
|
'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,
|
'user_logged_in_notification' => (bool) $user->user_logged_in_notification,
|
||||||
|
'referral_code' => (string) $user->referral_code,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,10 @@
|
|||||||
|
|
||||||
@endphp
|
@endphp
|
||||||
@section('gateway_head')
|
@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
|
@endsection
|
||||||
|
|
||||||
@section('gateway_content')
|
@section('gateway_content')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user