boolean readUserData(
string
$userHandle, [mixed
$userPasswd = false])
|
|
LiveUser_Auth_Container_XML::readUserData()
Reads auth_user_id, password from the xml file If only $handle is given, it will read the data from the first user with that handle and return true on success. If $handle and $passwd are given, it will try to find the first user with both handle and passwd matching and return true on success (this allows multiple users having the same handle but different passwords - yep, some people want this). If no match is found, false is being returned.
Overrides
LiveUser_Auth_Common::readUserData() (Reads auth_user_id, passwd, is_active flag)
Parameters:
mixed userExists(
[boolean
$checkHandle = false], [boolean
$checkPW = false])
|
|
LiveUser_Auth_Container_MDB::userExists()
Helper function that checks if there is a user in the database who's matching the given parameters. If $checkHandle is given and $checkPW is set to false, it only checks if a user with that handle exists. If only $checkPW is given and $checkHandle is set to false, it will check if there exists a user with that password. If both values are set to anything but false, it will find the first user in the database with both values matching. Please note:
- If no match was found, the return value is false
- If a match was found, the auth_user_id from the database
is being returned
Whatever is returned, please keep in mind that this function only searches for the _first_ occurence of the search values in the database. So when you have multiple users with the same handle, only the ID of the first one is returned. Same goes for passwords. Searching for both password and handle should be pretty safe, though - having more than one user with the same handle/password combination in the database would be pretty stupid anyway.
Overrides
LiveUser_Auth_Common::userExists() (Helper function that checks if there is a user in the database who's matching the given parameters.)
Parameters: