[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 457 lignes (17 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Auth_sql:: (10 méthodes):
Auth_sql()
_authenticate()
addUser()
updateUser()
resetPassword()
removeUser()
listUsers()
exists()
_comparePasswords()
_connect()
Auth_sql($params = array() X-Ref |
Constructs a new SQL authentication object. param: array $params A hash containing connection parameters. |
_authenticate($userId, $credentials) X-Ref |
Find out if a set of login credentials are valid. param: string $userId The userId to check. param: array $credentials The credentials to use. return: boolean Whether or not the credentials are valid. |
addUser($userId, $credentials) X-Ref |
Add a set of authentication credentials. param: string $userId The userId to add. param: array $credentials The credentials to add. return: mixed True on success or a PEAR_Error object on failure. |
updateUser($oldID, $newID, $credentials) X-Ref |
Update a set of authentication credentials. param: string $oldID The old userId. param: string $newID The new userId. param: array $credentials The new credentials return: mixed True on success or a PEAR_Error object on failure. |
resetPassword($user_id) X-Ref |
Reset a user's password. Used for example when the user does not remember the existing password. param: string $user_id The user id for which to reset the password. return: mixed The new password on success or a PEAR_Error object on |
removeUser($userId) X-Ref |
Delete a set of authentication credentials. param: string $userId The userId to delete. return: boolean Success or failure. |
listUsers() X-Ref |
List all users in the system. return: mixed The array of userIds, or false on failure/unsupported. |
exists($userId) X-Ref |
Checks if a userId exists in the sistem. return: boolean Whether or not the userId already exists. |
_comparePasswords($encrypted, $plaintext) X-Ref |
Compare an encrypted password to a plaintext string to see if they match. param: string $encrypted The crypted password to compare against. param: string $plaintext The plaintext password to verify. return: boolean True if matched, false otherwise. |
_connect() X-Ref |
Attempts to open a connection to the SQL server. return: mixed True on success or a PEAR_Error object on failure. |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |