$url)); } /** * Check if login is valid * - not empty * - exists in TAO ACL -OR- match with regex * @param $login * @return bool * * @throws InvalidLoginException */ public function validateLogin($login = null) { if (empty($login)) { throw new InvalidLoginException('No login found'); } if ($this->getServiceLocator()->get(\tao_models_classes_UserService::SERVICE_ID)->loginExists($login) || ($this->hasOption('regexValidator') && preg_match($this->getOption('regexValidator'), $login) === 1) ) { return true; } throw new InvalidLoginException('This login does not exist'); } }