Does anyone know how to modify the core controllers of users-permissions?

I’d like to make some changes to the emailConfirmation controller in the source here. I’ve tried putting the controller in a few different places, but it doesn’t seem to get used no matter where I put it. Any help is much appreciated!

strapi/packages/plugins/users-permissions/server/controllers/auth.js at main · strapi/strapi · GitHub

This topic has been created from a Discord post (1231045912583999498) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Nevermind, I figured it out. In case anyone else ever reads this it’s described here. How to override Users-Permissions on V4 - #2 by smoothdvd