Conditional sending of verification emails #13930
sdi2000012
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’d like to suggest a way to conditionally send verification emails in Payload v3. In my testing, I create a user programmatically with _verified: true For example:
This still sends me a verification email, so if I want to for example, migrate data from an old database to our current one, each user will receive an email, unless I wrap my email provider in a way that ignores and doesn't send empty emails and do this:
It would be great if Payload provided a built-in way to skip sending verification emails based on conditions, such as. if user._verified is true
Beta Was this translation helpful? Give feedback.
All reactions