Quote from: BobRay at Jan 12, 2016, 01:24 PMYes, this is fairly simple, though you'll still need to present a login form first (or use the MODX one).
You need a plugin that is connected to the OnManagerAuthentication System Event (and OnWebAuthentication if you need it in the front end).
Set $authenticated to true or false in your code and put this at the end of the plugin:
$modx->event->_output = (bool) $authenticated;
return;
The true case will bypass the MODX authentication process and the user will be logged in. In the false case, the MODX authentication will proceed and will fail unless the user has entered their MODX credentials in the login form.
Hello Bob,
I can't search 'OnManagerAuthentication' function on my modx files...
I'd try to study & modify the class of these 2 files :
core/model/modx/processors/security/login.class.php
core/model/modx/modmanagerresponse.class.php
on modmanagerresponse.class.php, i try to modify
public function validateAuthentication 's $isLoggedIn variable,
when i set to true, I get a 'This webpage has a redirect loop' message...
May I know on revo 2.4.2-pl , which files / variable do i need to modify to disabled the modx login authentication?
Thankyou...