]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php
Guest login basicly supported (not finished yet!)
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebShipsimuRegisterCommand.php
index cc9b0b7193e4fa1902503f9917fa5c0f71196c1c..035991df0644fb10211f46eb68c8bf4ed83f45c5 100644 (file)
@@ -58,9 +58,10 @@ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable {
                // Get the controller instance from the resolver (breaks MVC pattern again)
                $controllerInstance = $resolverInstance->getControllerInstance();
 
-               // @TODO Add some more pre/post filters to the controller
+               /* @TODO Add some more pre/post filters to the controller */
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator_class'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_is_guest_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_validator_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('rules_accepted_class'));