Hi,
I tried your code suggestion by editing the file ./node_modules/@strapi/plugin-users-permissions/server/services/user.js. It works fine !
But I think it’s not a good idea in the long term. The package update will remove this modification.
For example, I try to add “./src/extensions/users-permissions/server/services/user.js” without good result.
My question is, how can I override/extend the file without modify the original file ?
Thanks in advance for your response.