All filters rewritten to throw FilterChainException
[core.git] / inc / classes / main / filter / verifier / class_PasswordGuestVerifierFilter.php
index d4c3bfd..dda9a2e 100644 (file)
@@ -52,6 +52,7 @@ class PasswordGuestVerifierFilter extends BaseFilter implements Filterable {
         * @param       $requestInstance        An instance of a class with an Requestable interface
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
+        * @throws      FilterChainException    If this filter fails to operate
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get password
@@ -66,7 +67,7 @@ class PasswordGuestVerifierFilter extends BaseFilter implements Filterable {
                        $responseInstance->addFatalMessage('password_unset');
 
                        // Abort here
-                       return false;
+                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                } elseif (empty($password)) {
                        // Password is empty
                        $requestInstance->requestIsValid(false);
@@ -75,7 +76,7 @@ class PasswordGuestVerifierFilter extends BaseFilter implements Filterable {
                        $responseInstance->addFatalMessage('password_empty');
 
                        // Abort here
-                       return false;
+                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                }
        }
 }