Subject: | documentation error re generic driver |
The documentation gives the following sample code:
DRIVER => [
[ 'Generic', { user1 => '123' } ],
[ 'Generic', sub { my ($u, $p) = @_; is_prime($p) ? 1 : 0 } ]
],
For the case where the authentication method is a user-defined
subroutine, this is written as if the sub is supposed to return a
boolean. Actually, it's expected to return the username (if the
credentials are valid) or something that evaluates to false (if the
credentials are invalid).