X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3b31ac75ec41b3990cea770a9e48e2066bd8e9a3..refs/pull/5681/head:/app/Access/EmailConfirmationService.php diff --git a/app/Access/EmailConfirmationService.php b/app/Access/EmailConfirmationService.php index 79220f996..1a5156d3e 100644 --- a/app/Access/EmailConfirmationService.php +++ b/app/Access/EmailConfirmationService.php @@ -2,8 +2,8 @@ namespace BookStack\Access; +use BookStack\Access\Notifications\ConfirmEmailNotification; use BookStack\Exceptions\ConfirmationEmailException; -use BookStack\Notifications\ConfirmEmail; use BookStack\Users\Models\User; class EmailConfirmationService extends UserTokenService @@ -17,7 +17,7 @@ class EmailConfirmationService extends UserTokenService * * @throws ConfirmationEmailException */ - public function sendConfirmation(User $user) + public function sendConfirmation(User $user): void { if ($user->email_confirmed) { throw new ConfirmationEmailException(trans('errors.email_already_confirmed'), '/login'); @@ -26,7 +26,7 @@ class EmailConfirmationService extends UserTokenService $this->deleteByUser($user); $token = $this->createTokenForUser($user); - $user->notify(new ConfirmEmail($token)); + $user->notify(new ConfirmEmailNotification($token)); } /**