Hi,
In the wake of my previous efforts to internationalize the login page, I am now trying to extend the MemberAuthenticator class with a custom class.
The reason I'm trying to do that is that despite my aforementioned efforts, error messages still appear in en_US when the page is normally in fr_FR. To solve that problem, I've realized that I need to add a call to i18n::set_locale() in the static function MemberAuthenticator::authenticate.
I have created a subclass to MemberAuthenticator that does just that, added
Object::useCustomClass('MemberAuthenticator', 'MyMemberAuthenticator');
in mysite/_config.php, and run /dev/build.
And yet, using XDebug and Eclipse, I see that the standard MemberAuthenticator still gets called in lieu of my custom class, the file of which I've dropped in mysite/code/security/MyMemberAuthenticator.php. Is there something I did wrong?
Thank you.