4.16.1Class DBCheckUser

Hook that can be used to check for users in a configuration table.

Class DBCheckUser from \
                 Hook(( "check_user"))

This hook engages with the "check_user" function, and receives a user/password pair to be authenticated.

Authentication happens by checking a userid/password pair in a given database entity.

Passwords may be hashed through an arbitrary algorithm. In that case, the configuration must include a hash key pointing to the function used to obfuscate the passwords.

Known configuration keys are:

- entity: DBEntity providing the user table. The table must be searchable so that the user id is also a valid eid for the table.

Made with http://www.falconpl.org