Fixes for OTP

This commit is contained in:
David Bomba 2024-09-06 11:04:19 +10:00
parent 43b2bef464
commit 6a5b559983
4 changed files with 6 additions and 12 deletions

View File

@ -108,12 +108,6 @@ class PaymentController extends Controller
*/
public function process(Request $request)
{
// $request->validate([
// 'contact_first_name' => ['required'],
// 'contact_last_name' => ['required'],
// 'contact_email' => ['required', 'email'],
// ]);
return (new InstantPayment($request))->run();
}

View File

@ -51,14 +51,14 @@ class OtpCode extends Mailable
return $this->from(config('mail.from.address'), config('mail.from.name'))
->subject(ctrans('texts.otp_code_subject'))
->text('email.admin.generic_text')
->view('email.admin.generic')
->view('email.client.generic')
->with([
'settings' => $this->company->settings,
'logo' => $this->company->present()->logo(),
'title' => ctrans('texts.otp_code_subject'),
'content' => ctrans('texts.otp_code_body', ['code' => $this->code]),
'whitelabel' => $this->company->account->isPaid(),
'url' => '',
'url' => false,
'button' => false,
'template' => $this->company->account->isPremium() ? 'email.template.admin_premium' : 'email.template.admin',
]);

View File

@ -26,7 +26,7 @@
<p>{{ $additional_info }}</p>
@endisset
@isset($url)
@if($url)
<!--[if (gte mso 9)|(IE)]>
<table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
@ -50,7 +50,7 @@
<![endif]-->
@endisset
@endif
@isset($signature)
<p>{!! nl2br($signature) !!}</p>

View File

@ -20,7 +20,7 @@
<p>{{ $additional_info }}</p>
@endisset
@isset($url)
@if($url)
<div>
<!--[if (gte mso 9)|(IE)]>
@ -45,7 +45,7 @@
<![endif]-->
</div>
@endisset
@endif
@isset($signature)
<p>{!! nl2br($signature) !!}</p>