How to get role from user data on login

How can we edit the user controller it is located in a node_modules.