According to docs on OnBeforeManagerLogin - System Events | MODX Documentation
setting output to false, should prevent manager login. Reproducing the same code on my site doesn’t prevent the login at all. The event fires correctly, tried logging inside it.
Running MODX Revolution 2.8.2-pl
Code sample I used:
$eventName = $modx->event->name;
switch($eventName) {
case 'OnBeforeManagerLogin':
$modx->event->_output = false;
return;
break;
}
Tried using
$modx->event->output(false);
as well, but the issue persisted.