In src/ZfcUser/Authentication/Adapter/Db.php on line 75 is this code:
However, Zend/Authentication/Result.php has no constant defined for FAILURE_INACTIVE. This causes a fatal error when a user with a disallowed state attempts to log in.
Fix for issue #198.
The used constant was not defined in the AuthenticationResult so I changed an uncategorized error.
This is still not fixed:
Fatal error: Undefined class constant 'FAILURE_INACTIVE' in /home/www/tilburg/vendor/zf-commons/zfc-user/src/ZfcUser/Authentication/Adapter/Db.php on line 75
This line is the problem: 0ef8c63#L3R75
@hikaru-shindo wouldn't it be better to really use this status code instead of FAILURE_UNCATEGORIZED? Displaying a nice message to the user is otherwise not very easy.
@artur-gajewski Could you fix this? (since you broke it)
@yourithielen Any error code (negative values) smaller then uncategorized (-5) will be set to failure (0) and greater codes then success (1) is set to success. A nice message is already shown since it's passed to the result. It's not really easy to translate this through...
In my opinion Zend\Authentication\Result should allow for custom result codes through...
https://github.com/ZF-Commons/ZF-Commons/wiki/ZfcUser-1.0-to-2.0-PR-queue-handling (see notes, thanks!)