NAME
Nitesi::Account:Provider::DBI - DBI Account Provider for Nitesi Shop Machine
ATTRIBUTES
- 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.
METHODS
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.
create
Creates an account.
delete
Deletes an account.
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.
become
Become an user:
$acct->become('our.customer@linuxia.de');
load
Loads user with uid.
AUTHOR
Stefan Hornburg (Racke), <racke@linuxia.de>
LICENSE AND COPYRIGHT
Copyright 2011-2013 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.