Merge branch 'master' of https://github.com/brkcvn/akaunting into code-clean

This commit is contained in:
Burak Civan
2022-08-22 09:29:55 +03:00
4 changed files with 7 additions and 4 deletions

View File

@@ -176,7 +176,7 @@ class User extends Authenticatable implements HasLocalePreference
*/
public function sendPasswordResetNotification($token)
{
$this->notify(new Reset($token));
$this->notify(new Reset($token, $this->email));
}
/**

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'));
}
}