How to override a core controller class

Permalink
Hi I'm trying to override /concrete/authentication/concrete/controller.php file (authenticate() method in specific), but no clue how can I achieve this I tried from this linkhttps://www.concrete5.org/documentation/how-tos/developers/override-... still unable to get what I'm after, Any help is much appreciated

Thanks,
Venu