Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to override auth/local/register endpoint validations in Strapi Framework?

Tags:

strapi

I am new to Strapi framework (started learning today itself) and My front-end has login with Instagram only. So no need to remove email and password validation for the http://localhost:1337/auth/local/register endpoint.

I have removed validation from .chache/admin/containers/AuthPage/forms.js, but it doesn't get affected.

Where do I making mistake? I have searched for the answer but didn't get it.

like image 827
Alpesh Trivedi Avatar asked Oct 31 '25 06:10

Alpesh Trivedi


1 Answers

I found the solution.

I copied config and controllers folder from node_modules/strapi-plugin-users-permissions into extensions/users-permissions and made changes in controllers/Auth.js and it worked .

like image 182
Alpesh Trivedi Avatar answered Nov 04 '25 20:11

Alpesh Trivedi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!