Thanks man, I managed to find what I’m looking for by digging deeper.
I want to override the method beforeLogin, so I understand I should write my own WebUser class that extends CWebUser, however in …app/protected/config/main.php I already have a class associated with the user component that servers the Rights module. is there a way to include 2 classes ?