mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
v5.8.53
This commit is contained in:
parent
35fd124190
commit
c31442c19b
@ -1 +1 @@
|
||||
5.8.52
|
||||
5.8.53
|
@ -43,7 +43,7 @@ class ClientRegisterService
|
||||
|
||||
foreach ($rules as $field => $properties) {
|
||||
if ($field === 'email') {
|
||||
$rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]);
|
||||
$rules[$field] = array_merge($rules[$field], ['email:rfc', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]);
|
||||
}
|
||||
|
||||
if ($field === 'current_password' || $field === 'password') {
|
||||
|
@ -59,6 +59,8 @@ class Register extends Component
|
||||
|
||||
public function register(array $data)
|
||||
{
|
||||
nlog($data);
|
||||
|
||||
$service = new ClientRegisterService(
|
||||
company: $this->subscription->company,
|
||||
additional: $this->additional_fields,
|
||||
@ -66,8 +68,13 @@ class Register extends Component
|
||||
|
||||
$rules = $service->rules();
|
||||
|
||||
nlog($rules);
|
||||
|
||||
$data = Validator::make($data, $rules)->validate();
|
||||
|
||||
nlog("validated data");
|
||||
nlog($data);
|
||||
|
||||
$client = $service->createClient($data);
|
||||
$contact = $service->createClientContact($data, $client);
|
||||
|
||||
|
@ -244,7 +244,8 @@ return render('gateways.paypal.pay', $data);
|
||||
nlog("post order creation");
|
||||
nlog($orderId);
|
||||
|
||||
$r = $this->gatewayRequest("/v2/checkout/orders/{$orderId}", 'get', ['body' => '']);
|
||||
|
||||
$r = $this->gatewayRequest("/v2/checkout/orders/{$orderId}", 'get', ['body' => '']);
|
||||
nlog($r);
|
||||
|
||||
$response = $r->json();
|
||||
|
@ -17,8 +17,8 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => env('APP_VERSION', '5.8.52'),
|
||||
'app_tag' => env('APP_TAG', '5.8.52'),
|
||||
'app_version' => env('APP_VERSION', '5.8.53'),
|
||||
'app_tag' => env('APP_TAG', '5.8.53'),
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
Loading…
Reference in New Issue
Block a user