Hello there. I would like to send an email when user information is changed.
I have tried creating strapi/src/extensions/users-permissions/strapi-server.ts:
module.exports = (plugin) => {
plugin.controllers.user.update = async (ctx) => {
console.log(ctx.request.body);
};
return plugin;
};
But it does not work. Changing user-data on admin-panel there is no console.log.