Skip to content

Commit

Permalink
Trigger email verification on updateViewer (fix #90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesedmonston committed Sep 5, 2022
1 parent 6f25a11 commit 9cc11ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ public function registerGqlMutations(RegisterGqlMutationsEvent $event)
$errorService->throw($errors[key($errors)][0]);
}

if ($email) {
$usersService->sendNewEmailVerifyEmail($user);
}

return $user;
},
];
Expand Down

0 comments on commit 9cc11ab

Please sign in to comment.