Validate password

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.0.2


Validate password (userID; password) Boolean

ParameterTypeDescription
userIDNumberUnique user ID
passwordStringUnencrypted password
Function resultBooleanTrue = valid password
False = invalid password

Description

Validate password returns True if the string passed in password is the password for the user account whose ID number is passed in userID.

Example

This example checks whether the password of the user "Hardy" is "Laurel":

   GET USER LIST(atUserName;alUserID)
   $vlElem:=Find in array(atUserName;"Hardy")
   If ($vlElem>0)
      If (Validate password(alUserID{$vlElem};"Laurel")>0)
         ALERT("Yep!")
      Else
         ALERT("Too bad!")
      End if
   Else
      ALERT("Unknown user name")
   End if

See Also

GET USER PROPERTIES, SET USER PROPERTIES.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next