Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
GET /admin/users/verify/12714662902e10caa79959550b8cdee31d3a0483 404 in 503ms
Admins are not able to verify their account. Cannot login unless I manually update the verify field in the database or else the admin resets their password.
Reproduction Steps
Email Verification Error (404):
When an admin account is created, a verification email is sent successfully. Upon clicking the verification link, the link leads to a 404 page, suggesting a routing or URL mismatch issue, despite the user record being present.
Password Reset Bypass:
After the password is reset, the user gains access to the platform, bypassing the email verification step.
I added verify: true and verification emails where being sent.
Example Below:
A new account has just been created for you to access Please click on the following link or paste the URL below into your browser to verify your email: http://localhost:3000/admin/users/verify/0a0f611226ddf3e0d10947d3e4d62144f09b529a
After verifying your email, you will be able to log in successfully.
Link to reproduction
No response
Environment Info
Describe the Bug
Admin User Verification link returns 404
GET /admin/users/verify/12714662902e10caa79959550b8cdee31d3a0483 404 in 503ms
Admins are not able to verify their account. Cannot login unless I manually update the verify field in the database or else the admin resets their password.
Reproduction Steps
Email Verification Error (404):
When an admin account is created, a verification email is sent successfully. Upon clicking the verification link, the link leads to a 404 page, suggesting a routing or URL mismatch issue, despite the user record being present.
Password Reset Bypass:
After the password is reset, the user gains access to the platform, bypassing the email verification step.
Development Steps Leading to the Issue
Clone Website Template
Auth is set to true by default.
Tweaked the Auth Config to this:
Verify Flag Added:
I added
verify: true
and verification emails where being sent.Example Below:
Final User Config:
I have tried this both on Development and in Production. Same issue occurs on both.
Adapters and Plugins
db-mongodb