VerifyOprPassword function
Syntax
VerifyOprPassword(O_or_U, user_ID, cleartext_pwd)
Description
Use the VerifyOprPassword function to verify that an input clear text string matches the password hashed by either HashWithSalt or Hash and stored in the PSOPRDEFN table.
Parameters
| Parameter | Description |
|---|---|
|
O_or_U |
Indicates which PSOPRDEFN field to use when matching the user ID:
|
|
user_ID |
Specifies the user ID as a string value. |
|
cleartext_pwd |
Specifies the input password as a clear text string. |
Returns
A Boolean value: True if the input password matches the hashed password stored in the database, False otherwise.
Example
If Not VerifyOprPassword("O", %UserId, "user_password") Then
rem they don't match, throw error;
Error MsgGet(48, 18, "Message not found");
End-If;