Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strapi returns error code 400 on user registration

Tags:

strapi

Strapi user registration returns error 400 Bad Request every time I try to register a test user, however the user does get created in the Users collection.

I am using the standard Strapi Email plugin (not the Send grid plugin), everytime I register a user, this plugin does not send an email which leads to be unable to confirm the user.

strapi returns error code 400 on registering users

In the above image it returns an 400 Error but the user gets created. Also, how to send the confirmation email with Strapi standard email plugin.

All auth permissions for Public role have been enabled

Permissions

How to fix this error and send the confirmation email on new user register?

like image 590
Mazino Avatar asked Aug 31 '25 03:08

Mazino


1 Answers

I also have the same issue, I just turned off the 'Enable email confirmation' on Advanced Settings, then it worked (registration).

So, In Strapi Admin:

Go to Settings -> Advanced settings

Set the field Enable email confirmation to "Off" then click save.

This works for me.

like image 160
Chris Fradejas Avatar answered Sep 06 '25 19:09

Chris Fradejas