feat: harden admin auth and ticket workflows
- add rotating admin refresh tokens and password gates\n- expand ticket galleries, exports, and client resources\n- improve IP allocation auditing and dashboard data\n- enforce encrypted client access tokens on public routes
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Support\EmailTemplateShell;
|
||||
use App\Support\MailGlobals;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
@@ -28,19 +29,14 @@ class TicketCreated extends TemplateMailable implements ShouldQueue
|
||||
|
||||
protected function variables(): array
|
||||
{
|
||||
$room = $this->ticket->room ?? null;
|
||||
$room = $this->ticket->roomLabel();
|
||||
|
||||
return [
|
||||
'full_name' => trim("{$this->customer->firstname} {$this->customer->lastname}") ?: 'Quý khách',
|
||||
'ticket_num' => $this->ticket->ticket_num,
|
||||
'subject' => $this->ticket->subject,
|
||||
'room_row' => $room
|
||||
? EmailTemplateShell::row('Phòng ban', e($room))
|
||||
: '',
|
||||
'ticket_url' => rtrim(config('app.frontend_url', ''), '/') . '/tickets/' . $this->ticket->ticket_num,
|
||||
'app_name' => config('app.name', 'Thế Giới Số'),
|
||||
'support_email' => 'support@tgs.com.vn',
|
||||
'support_phone' => '(028) 7309. 7379',
|
||||
'full_name' => $this->customer->fullname ?: 'Quý khách',
|
||||
'ticket_num' => $this->ticket->ticket_num,
|
||||
'subject' => $this->ticket->subject,
|
||||
'room_row' => $room ? EmailTemplateShell::row('Phòng ban', e($room)) : '',
|
||||
'ticket_url' => MailGlobals::frontendUrl() . '/tickets/' . $this->ticket->ticket_num,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user