Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Authentication CPAN distribution.

Report information
The Basics
Id: 82390
Status: new
Priority: 0/
Queue: CGI-Application-Plugin-Authentication

People
Owner: Nobody in particular
Requestors: pacificsymphony5 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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).