Update password reset email

This commit is contained in:
Deon George 2024-08-03 10:47:08 +10:00
parent 0469d64577
commit df3f7e31be
3 changed files with 9 additions and 6 deletions

View File

@ -72,7 +72,8 @@ class User extends Authenticatable implements IDs
*/
public function sendPasswordResetNotification($token)
{
$this->notify((new ResetPasswordNotification($token))->onQueue('high'));
$this->notify((new ResetPasswordNotification($token))
->onQueue('user'));
}
/* INTERFACES */

View File

@ -25,7 +25,7 @@ class ResetPassword extends ResetPasswordNotification implements ShouldQueue
}
return (new MailMessage)
->markdown('email.user.passwordreset',[
->markdown('mail.password.reset',[
'site'=>$notifiable->site,
'user'=>$notifiable,
'reset_link'=>route('password.reset',$this->token,true),

View File

@ -1,9 +1,7 @@
@component('mail::message',['site'=>$site,'heading'=>'Password Reset'])
Hi {{ isset($user) ? $user->name_full.',' : '' }}
You are receiving this email because we received a password reset request for your account.
If you did not request a password reset, no further action is required.
You are receiving this email because we received a password reset request for your account. If you did not request a password reset, no further action is required.
To reset your password, please follow this link, or click on the URL below:
@component('mail::button',['url'=>$reset_link])
@ -11,7 +9,11 @@ Reset Password
@endcomponent
@component('mail::subcontent')
Reset password: {{ $reset_link }}
If the button above doesnt work, you can copy and paste this link into your browser, and take it from there:
```
{{ $reset_link }}
```
@endcomponent
Thanks,<br>