Add username and password fields to VirtualMachines model and database migration; update related email templates to use config for frontend URL
This commit is contained in:
@@ -35,7 +35,7 @@ class PasswordResetByAdmin extends Mailable
|
||||
'fullName' => $data['fullname'] ?? 'Quý khách',
|
||||
'email' => $data['email'] ?? '',
|
||||
'password' => $data['password'] ?? '',
|
||||
'loginUrl' => $data['login_url'] ?? rtrim((string) env('FRONTEND_URL', ''), '/') . '/dang-nhap',
|
||||
'loginUrl' => $data['login_url'] ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap',
|
||||
'supportEmail' => $data['support_email'] ?? config('mail.support_email', 'support@thegioiso.com'),
|
||||
'supportPhone' => $data['support_phone'] ?? config('mail.support_phone', '1900.xxxx'),
|
||||
],
|
||||
@@ -60,7 +60,7 @@ class PasswordResetByAdmin extends Mailable
|
||||
'company_name' => $settingValue['company'] ?? config('app.name', 'The Gioi So'),
|
||||
'support_email' => $settingValue['email'] ?? config('mail.support_email', 'support@thegioiso.com'),
|
||||
'support_phone' => $settingValue['hotline'] ?? ($settingValue['phone'] ?? config('mail.support_phone', '1900.xxxx')),
|
||||
'login_url' => rtrim((string) env('FRONTEND_URL', ''), '/') . '/dang-nhap',
|
||||
'login_url' => rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap',
|
||||
], $this->data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user