From: Roland Häder Date: Fri, 21 Nov 2008 00:05:14 +0000 (+0000) Subject: No controller instance to filters now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ecae2f62ec725850f3bfab4d3b3ae2c0fe7a837;p=admin.git No controller instance to filters now --- diff --git a/application/admin/main/commands/web/class_WebAdminUserLoginCommand.php b/application/admin/main/commands/web/class_WebAdminUserLoginCommand.php index 03fc485..409ef46 100644 --- a/application/admin/main/commands/web/class_WebAdminUserLoginCommand.php +++ b/application/admin/main/commands/web/class_WebAdminUserLoginCommand.php @@ -104,23 +104,23 @@ class WebAdminUserLoginCommand extends BaseCommand implements Commandable { // Which login type do we have? switch ($this->getConfigInstance()->readConfig('login_type')) { case "username": // Login via username - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_verifier_filter', array($controllerInstance))); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_verifier_filter')); break; case "email": // Login via email - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_verifier_filter', array($controllerInstance))); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_verifier_filter')); break; default: // Wether username or email is set - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_email_verifier_filter', array($controllerInstance))); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_email_verifier_filter')); break; } // Password verifier filter - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_verifier_filter', array($controllerInstance))); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_verifier_filter')); // Add filter for CAPTCHA - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_user_verifier_filter', array($controllerInstance))); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_user_verifier_filter')); } }