mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Fixes for smtp_port cast
This commit is contained in:
parent
2e22da26da
commit
04bf207a97
@ -30,7 +30,7 @@ class SmtpController extends BaseController
|
||||
$company = $user->company();
|
||||
|
||||
$smtp_host = $request->input('smtp_host', $company->smtp_host);
|
||||
$smtp_port = $request->input('smtp_port', $company->smtp_port);
|
||||
$smtp_port = (int)$request->input('smtp_port', $company->smtp_port);
|
||||
$smtp_username = $request->input('smtp_username', $company->smtp_username);
|
||||
$smtp_password = $request->input('smtp_password', $company->smtp_password);
|
||||
$smtp_encryption = $request->input('smtp_encryption', $company->smtp_encryption ?? 'tls');
|
||||
|
@ -417,7 +417,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
$company = $this->company;
|
||||
|
||||
$smtp_host = $company->smtp_host ?? '';
|
||||
$smtp_port = $company->smtp_port;
|
||||
$smtp_port = (int)$company->smtp_port;
|
||||
$smtp_username = $company->smtp_username ?? '';
|
||||
$smtp_password = $company->smtp_password ?? '';
|
||||
$smtp_encryption = $company->smtp_encryption ?? 'tls';
|
||||
|
@ -622,7 +622,7 @@ class Email implements ShouldQueue
|
||||
$company = $this->company;
|
||||
|
||||
$smtp_host = $company->smtp_host ?? '';
|
||||
$smtp_port = $company->smtp_port;
|
||||
$smtp_port = (int)$company->smtp_port;
|
||||
$smtp_username = $company->smtp_username ?? '';
|
||||
$smtp_password = $company->smtp_password ?? '';
|
||||
$smtp_encryption = $company->smtp_encryption ?? 'tls';
|
||||
|
Loading…
Reference in New Issue
Block a user