ClearPress::authenticator::db - ClearPress::authenticator::db documentation


ClearPress documentation  | view source Contained in the ClearPress distribution.

Index


NAME

Top

ClearPress::authenticator::db

VERSION

Top

$LastChangedRevision: 388 $

SYNOPSIS

Top

DESCRIPTION

Top

SUBROUTINES/METHODS

Top

table - get/set accessor for database table to use

  $oDBAuth->table('user');
  my $sTable = $oDBAuth->table();

username_field - get/set accessor for field containing username

  $oDBAuth->username_field('username');
  my $sUsernameField = $oDBAuth->username_field();

password_field - get/set accessor for field containing password

  $oDBAuth->password_field('pass');
  my $sPasswordField = $oDBAuth->password_field();

cipher - get/set accessor for encryption function name

  $oDBAuth->cipher('sha1');
  my $sCipher = $oDBAuth->cipher();

dbh - get/set accessor for database handle to use for query

  $oDBAuth->dbh($oDBH);
  my $oDBH = $oDBAuth->dbh();

authen_credentials - attempt to authenticate against database using given username & password

  my $hrAuthenticated = $oDBAuth->authen_credentials({username => $sUsername, password => $sPassword});

  returns undef or hashref

DIAGNOSTICS

Top

CONFIGURATION AND ENVIRONMENT

Top

DEPENDENCIES

Top

strict
warnings
base
ClearPress::authenticator
Readonly
Carp
English
Class::Accessor

OPTIONAL DEPENDENCIES

Top

You will probably need one of the following

Crypt::MySQL

for mysql and mysql41 support

Digest::SHA

for sha1, sha128, sha256, sha384, sha512 support

Digest::MD5

for md5 support

INCOMPATIBILITIES

Top

BUGS AND LIMITATIONS

Top

AUTHOR

Top

$Author: Roger Pettett$

LICENSE AND COPYRIGHT

Top


ClearPress documentation  | view source Contained in the ClearPress distribution.