From 12e72c538e67736960740b0b475c9a832f035e91 Mon Sep 17 00:00:00 2001 From: Bert Oost Date: Thu, 26 Sep 2013 14:26:43 +0200 Subject: [PATCH] Update loginvalidator.class.php Change _getErrorMessage() protected into public, to make it available for third party validators (same as I did for FormIt ;-)) --- core/components/login/model/login/loginvalidator.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/components/login/model/login/loginvalidator.class.php b/core/components/login/model/login/loginvalidator.class.php index abbc1bff..9bb3d5f9 100644 --- a/core/components/login/model/login/loginvalidator.class.php +++ b/core/components/login/model/login/loginvalidator.class.php @@ -687,7 +687,7 @@ public function regexp($key,$value,$expression) { * @param array $properties * @return null|string */ - protected function _getErrorMessage($field,$parameter,$lexiconKey,array $properties = array()) { + public function _getErrorMessage($field,$parameter,$lexiconKey,array $properties = array()) { if (!empty($this->login->config[$field.'.'.$parameter])) { $message = $this->login->config[$field.'.'.$parameter]; $this->modx->lexicon->set($lexiconKey,$message); @@ -727,4 +727,4 @@ public function reset() { $this->errors = array(); $this->errorsRaw = array(); } -} \ No newline at end of file +}