如何在 Strapi 框架中覆盖 auth/local/register 端点验证?

Alp*_*edi 2 strapi

我是 Strapi 框架的新手(今天开始自己学习),我的前端仅使用 Instagram 登录。因此无需删除http://localhost:1337/auth/local/register端点的电子邮件和密码验证 。

我已经从 .chache/admin/containers/AuthPage/forms.js 中删除了验证,但它没有受到影响。

我哪里出错了?我已经搜索了答案,但没有得到。

Alp*_*edi 5

我找到了解决方案。

我从into复制configcontrollers文件夹并在其中进行了更改,并且它起作用了。node_modules/strapi-plugin-users-permissionsextensions/users-permissionscontrollers/Auth.js