I'm using Strapi for my API and Back office. Everything works fine except one thing: I can't figure out how to override the controller that is used for the forgot password feature. I've tried to follow the documentation, especially this page : https://strapi.io/documentation/3.0.0-beta.x/admin-panel/customization.html#development-mode but no chance.
Here what I've tried :
- Create a folder
admin
at the root of the project, inside which I createdcontroller/Auth.js
. In this file I created my custom forgotPassword function but it's not called. - Add the file
admin/config/routes.json
, my controller got the same name but I thought that maybe I need to repeat the route here to override, still not successful. - I saw on some page that to get what I was searching I needed to put those files (config/routes.json and controller/Auth.js) inside
/extensions/user-permissions/admin
, but it's still not working.
Whatever I try, it's always the default forgot password controller that is called, from the strapi-admin node modules.
Any help would be greatly appreciated, I don't see what I'm missing here.