Skip to content

Commit

Permalink
Merge pull request #1389 from bakaphp/hotfix-blank-email-notification
Browse files Browse the repository at this point in the history
refact: fix raw pass:
  • Loading branch information
kaioken authored May 23, 2024
2 parents b2a8014 + ed5c757 commit a3f1dc4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/GraphQL/Ecosystem/Mutations/Auth/AuthManagementMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Kanvas\Users\Actions\SwitchCompanyBranchAction;
use Kanvas\Users\Enums\UserConfigEnum;
use Kanvas\Users\Repositories\UsersRepository;
use Kanvas\Workflow\Enums\WorkflowEnum;
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;

class AuthManagementMutation
Expand Down Expand Up @@ -52,7 +53,7 @@ public function loginMutation(
'email' => $email,
'password' => $password,
'ip' => $request->ip(),
'deviceId' => $deviceId
'deviceId' => $deviceId,
])
);

Expand Down Expand Up @@ -198,6 +199,15 @@ public function forgot(

$request = request();

$registeredUser->fireWorkflow(
WorkflowEnum::REQUEST_FORGOT_PASSWORD->value,
true,
[
'app' => app(Apps::class),
'profile' => $user,
]
);

return true;
}

Expand Down

0 comments on commit a3f1dc4

Please sign in to comment.