You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a user and auth.verify is true on the collection, the verification email is sent despite having verified checked in UI. The verificationToken is also generated.
Describe the Bug
When creating a user and
auth.verify
is true on the collection, the verification email is sent despite havingverified
checked in UI. TheverificationToken
is also generated.Missing check for
resultWithLocales._verified
or!verificationToken
: https://github.com/payloadcms/payload/blob/main/packages/payload/src/collections/operations/create.ts#L256Missing Check for
result._verified === true
: https://github.com/payloadcms/payload/blob/main/packages/payload/src/collections/operations/create.ts#L298Link to the code that reproduces this issue
https://github.com/tylkomat/payload/tree/bug-verification-email
Reproduction Steps
verify
to true on user collectionverified
checkbox, hit saveINFO: Email attempted without being configured. To: ...
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: