Permalink
Browse files

Revert handling output of OnBeforeWebLogin and OnBeforeManagerLogin e…

…vents
  • Loading branch information...
1 parent 330020a commit 050170720e9e1de61ed19b864519a3d525493495 @theboxer theboxer committed Sep 1, 2015
Showing with 9 additions and 2 deletions.
  1. +9 −2 core/model/modx/processors/security/login.class.php
@@ -61,9 +61,16 @@ public function fireOnBeforeLoginEvent() {
);
$response = $this->modx->invokeEvent($this->isMgr ? "OnBeforeManagerLogin" : "OnBeforeWebLogin", $onBeforeLoginParams);
- $preventLogin = $this->processEventResponse($response);
- return $preventLogin;
+ if (is_array($response)) {
+ foreach ($response as $key => $value) {
+ if ($value !== true) {
+ return $value;
+ }
+ }
+ }
+
+ return '';
}
/**

0 comments on commit 0501707

Please sign in to comment.