]> BookStack Code Mirror - bookstack/blob - app/Notifications/ResetPassword.php
Removed use of HttpFetcher
[bookstack] / app / Notifications / ResetPassword.php
1 <?php
2
3 namespace BookStack\Notifications;
4
5 use BookStack\Users\Models\User;
6 use Illuminate\Notifications\Messages\MailMessage;
7
8 class ResetPassword extends MailNotification
9 {
10     public function __construct(
11         public string $token
12     ) {
13     }
14
15     public function toMail(User $notifiable): MailMessage
16     {
17         return $this->newMailMessage()
18             ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
19             ->line(trans('auth.email_reset_text'))
20             ->action(trans('auth.reset_password'), url('password/reset/' . $this->token))
21             ->line(trans('auth.email_reset_not_requested'));
22     }
23 }