NAME
Auth::Kokolores::Plugin::SqlRetrieve - kokolores plugin for retrieving users from SQL databases
VERSION
version 1.01
DESCRIPTION
Retrieve a user from a SQL database.
Will fail if no user is found.
If a user is found all fields of the record will be stored in the current requests userinfo field.
EXAMPLE
<Plugin retrieve-user>
module = "SqlRetrieve"
select = "SELECT * FROM passwd WHERE username = ?"
# handle = 'sql'
</Plugin>
MODULE PARAMETERS
select (default: SELECT username, method, salt, cost, hash FROM users WHERE username = ?)
Define a SQL SELECT query to retrieve the user from the SQL database.
handle (default: 'sql')
Name of the SQL connection to retrieve from the connection pool.
You must configure a SQL connection with the SqlConnection plugin. It'll register a connection within the connection pool. The default name will be 'sql'.
AUTHOR
Markus Benning <ich@markusbenning.de>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2016 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991