You may be onto something.
Jon Paul Miles
1

I think it is okay to trigger the action (which sends the email with the verification Link to the user) from a hook.

What I was trying to say is, that if you call ‘verifySignupLong’ from the client, the action ‘verifySignup’ will be executed on the backend, which, in the case of this example, leads to sending another email.

So my solution for this was to rename the action ‘verifySignup’ to something like ‘sendVerifyMail’ and to create a new ‘verifySignup’ action to send a mail with “Your account has been activated… (etc)”.

Greetings
Andreas

Like what you read? Give Andreas Reiterer a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.