NAME
Nitesi::Account:Provider::DBI - DBI Account Provider for Nitesi Shop Machine
METHODS
init
Initializer for this class. Arguments are:
- dbh
-
DBI handle (required).
- crypt
-
Account::Manager::Password instance (required).
- fields
-
List of fields (as array reference) to be retrieved from the database and put into account data return by login method.
login
Check parameters username and password for correct authentication.
Returns hash reference with the following values in case of success:
- uid
-
User identifier
- username
-
Username
- roles
-
List of roles for this user.
- permissions
-
List of permissions for this user.
roles
Returns list of roles for supplied user identifier.
permissions
Returns list of permissions for supplied user identifier and array reference with roles.
value
Get or set value.
password
Set password.
exists
Check whether user exists.
AUTHOR
Stefan Hornburg (Racke), <racke@linuxia.de>
LICENSE AND COPYRIGHT
Copyright 2011 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.