so i'm using devise_token_auth gem for basic user functionalities, and I made some simple changes to the reset password flow. Basically instead of having a link in the email for the user to click and go to the reset page, I show the token, so the users has to copy it and enter manually in a field.
It is working like that, but the token is to large and ugly, i'd like it to be something like 6 alphanumeric digits. It looks better and it makes things easier for the user. I don't quite know how to do it, I probably should overwrite some devise original Controller. How to do it? As devise_token_auth places a controller "on top" of every original devise controller and what I want is to overwrite the set_reset_password_token from devise's recoverable module.
EDIT: I've found the answer myself so i'll answer it below! But please, feel free to complain, ask and propose better/alternative solutions.