mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
8e3f8de627
Closes #4500
27 lines
782 B
PHP
27 lines
782 B
PHP
<?php
|
|
|
|
namespace BookStack\Access\Notifications;
|
|
|
|
use BookStack\App\MailNotification;
|
|
use BookStack\Users\Models\User;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class ConfirmEmailNotification extends MailNotification
|
|
{
|
|
public function __construct(
|
|
public string $token
|
|
) {
|
|
}
|
|
|
|
public function toMail(User $notifiable): MailMessage
|
|
{
|
|
$appName = ['appName' => setting('app-name')];
|
|
|
|
return $this->newMailMessage()
|
|
->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'), url('/register/confirm/' . $this->token));
|
|
}
|
|
}
|