-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
Bug report
Describe the bug
New user signs up, receives email verification message, clicks on link, and Strapi returns error.
This is a new user, new email.
Steps to reproduce the behavior
- New user signs in
- Receives email verification with token.
- Clicks on email verification link and receives the following message:
{"statusCode":400,"error":"Bad Request","message":"token.invalid"}
Expected behavior
The verification link should reroute to a success page.
System
- Node.js version: v10.16.0
- NPM version: 6.9.0
- Strapi version: 3.5.2
- Database: SQLite
- Operating system: Ubuntu 18.04
Additional context
Not sure if this has anything to do with the error, but I noticed that (a) even though Strapi returns an error and doesn't reroute to success page -- the new user is, in fact, verified and (b) the 'block user' boolean switch in the user entry in the Strapi backend is blank -- neither true nor false. I'm wondering if this, somehow, is the cause of the error?
I'm using SQLite, and up until moving from 3.4.4 to 3.5.2 the other day -- the user verification process has always worked. Never returned an error for a new user verification with a valid token.
I reverted back to 3.4.4 -- same SQLite database -- and re-ran the verification process (making sure the user is new and the email is new) and the verification email link works fine. It reroutes to the front-end success page. User is verified in the backend, and the 'block user' switch is set to off (as it should be).