checkPassword()
Checks the assignment of a password to the user id.
Synopsis
bool checkPassword(unsigned id, string
passwd);
Parameters
Parameter | Meaning |
---|---|
id | User id |
passwd | Unencrypted password |
Return Value
Correctness of assignment (TRUE/FALSE).
Errors
Description
Returns "TRUE" is the specified password is assigned to the specified user id, otherwise returns "FALSE". The assignment exists if the specified password in the dynamic field that shows the value of the data point variables "_Users.Password" has the same index as the specified id in the field of the data point variables "_Users.UserId".
Example
Condition, depending on whether the password "Open" is valid for the id 713.
main()
{
string c = "Open";
bool h;
h = checkPassword(713, c);
DebugN("Is the specified password assigned to the User ID 713", h, c);
}
Assignment
User administration
Availability
CTRL