X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9dc9724e15bdd6d2bd316f7fa24592da72124bc5..refs/pull/494/head:/app/Notifications/ConfirmEmail.php diff --git a/app/Notifications/ConfirmEmail.php b/app/Notifications/ConfirmEmail.php index bd310d73d..27ac89c32 100644 --- a/app/Notifications/ConfirmEmail.php +++ b/app/Notifications/ConfirmEmail.php @@ -2,12 +2,16 @@ namespace BookStack\Notifications; +use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; -class ConfirmEmail extends Notification +class ConfirmEmail extends Notification implements ShouldQueue { + use Queueable; + public $token; /** @@ -38,11 +42,12 @@ class ConfirmEmail extends Notification */ public function toMail($notifiable) { + $appName = ['appName' => setting('app-name')]; return (new MailMessage) - ->subject('Confirm your email on ' . session('app-name')) - ->greeting('Thanks for joining ' . setting('app-name') . '!') - ->line('Please confirm your email address by clicking the button below:') - ->action('Confirm Email', baseUrl('/register/confirm/' . $this->token)); + ->subject(trans('auth.email_confirm_subject', $appName)) + ->greeting(trans('auth.email_confirm_greeting', $appName)) + ->line(trans('auth.email_confirm_text')) + ->action(trans('auth.email_confirm_action'), baseUrl('/register/confirm/' . $this->token)); } }