mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for OTP
This commit is contained in:
parent
43b2bef464
commit
6a5b559983
@ -108,12 +108,6 @@ class PaymentController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function process(Request $request)
|
public function process(Request $request)
|
||||||
{
|
{
|
||||||
// $request->validate([
|
|
||||||
// 'contact_first_name' => ['required'],
|
|
||||||
// 'contact_last_name' => ['required'],
|
|
||||||
// 'contact_email' => ['required', 'email'],
|
|
||||||
// ]);
|
|
||||||
|
|
||||||
return (new InstantPayment($request))->run();
|
return (new InstantPayment($request))->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,14 +51,14 @@ class OtpCode extends Mailable
|
|||||||
return $this->from(config('mail.from.address'), config('mail.from.name'))
|
return $this->from(config('mail.from.address'), config('mail.from.name'))
|
||||||
->subject(ctrans('texts.otp_code_subject'))
|
->subject(ctrans('texts.otp_code_subject'))
|
||||||
->text('email.admin.generic_text')
|
->text('email.admin.generic_text')
|
||||||
->view('email.admin.generic')
|
->view('email.client.generic')
|
||||||
->with([
|
->with([
|
||||||
'settings' => $this->company->settings,
|
'settings' => $this->company->settings,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'title' => ctrans('texts.otp_code_subject'),
|
'title' => ctrans('texts.otp_code_subject'),
|
||||||
'content' => ctrans('texts.otp_code_body', ['code' => $this->code]),
|
'content' => ctrans('texts.otp_code_body', ['code' => $this->code]),
|
||||||
'whitelabel' => $this->company->account->isPaid(),
|
'whitelabel' => $this->company->account->isPaid(),
|
||||||
'url' => '',
|
'url' => false,
|
||||||
'button' => false,
|
'button' => false,
|
||||||
'template' => $this->company->account->isPremium() ? 'email.template.admin_premium' : 'email.template.admin',
|
'template' => $this->company->account->isPremium() ? 'email.template.admin_premium' : 'email.template.admin',
|
||||||
]);
|
]);
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<p>{{ $additional_info }}</p>
|
<p>{{ $additional_info }}</p>
|
||||||
@endisset
|
@endisset
|
||||||
|
|
||||||
@isset($url)
|
@if($url)
|
||||||
|
|
||||||
<!--[if (gte mso 9)|(IE)]>
|
<!--[if (gte mso 9)|(IE)]>
|
||||||
<table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
|
<table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
|
||||||
@ -50,7 +50,7 @@
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
|
|
||||||
@endisset
|
@endif
|
||||||
|
|
||||||
@isset($signature)
|
@isset($signature)
|
||||||
<p>{!! nl2br($signature) !!}</p>
|
<p>{!! nl2br($signature) !!}</p>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<p>{{ $additional_info }}</p>
|
<p>{{ $additional_info }}</p>
|
||||||
@endisset
|
@endisset
|
||||||
|
|
||||||
@isset($url)
|
@if($url)
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!--[if (gte mso 9)|(IE)]>
|
<!--[if (gte mso 9)|(IE)]>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endisset
|
@endif
|
||||||
|
|
||||||
@isset($signature)
|
@isset($signature)
|
||||||
<p>{!! nl2br($signature) !!}</p>
|
<p>{!! nl2br($signature) !!}</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user