Disable email input on reset page

This commit is contained in:
EnesSacid-Buker
2022-08-18 18:59:00 +03:00
committed by GitHub
parent 9f7c771d21
commit d0f75780ff
4 changed files with 7 additions and 4 deletions

View File

@ -19,9 +19,10 @@ class Reset extends Notification
*
* @param string $token
*/
public function __construct($token)
public function __construct($token, $email)
{
$this->token = $token;
$this->email = $email;
}
/**
@ -45,7 +46,7 @@ class Reset extends Notification
{
return (new MailMessage)
->line(trans('auth.notification.message_1'))
->action(trans('auth.notification.button'), route('reset', $this->token))
->action(trans('auth.notification.button'), route('reset', ['token' => $this->token, 'email' => $this->email]))
->line(trans('auth.notification.message_2'));
}
}