Skip to content

Commit

Permalink
Merge pull request #1746 from bakaphp/feat-create-user-welcome-emai
Browse files Browse the repository at this point in the history
feat: create user welcome email
  • Loading branch information
kaioken authored Jul 30, 2024
2 parents fc675d7 + eef13a0 commit 6d88197
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Kanvas/Auth/Actions/CreateUserAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use Kanvas\Users\Jobs\OnBoardingJob;
use Kanvas\Users\Models\Users;
use Kanvas\Users\Repositories\UsersRepository;
use Kanvas\Users\Services\UserNotificationService;
use Kanvas\Workflow\Enums\WorkflowEnum;
use Throwable;

Expand Down Expand Up @@ -87,6 +88,8 @@ public function execute(): Users
$this->onBoarding($user, $company);
}

UserNotificationService::sendWelcomeEmail($this->app, $user, $company);

if ($this->runWorkflow) {
$user->fireWorkflow(
WorkflowEnum::REGISTERED->value,
Expand Down

0 comments on commit 6d88197

Please sign in to comment.