4D v14.3Validate password |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Validate password
Validate password
Validate password returns True if the string passed in password is the password for the user account whose ID number or name is passed in userID. The optional digest parameter indicates whether the password parameter contains a plain-text password or a hashed password (digest mode):
This parameter is particularly helpful when using authentication database methods, in particular the On 4D Mobile Authentication database method. The command execution is now delayed to prevent flooding (brute force attack), in other words, attempts of multiple user name/password combinations. As a result, after the 4th call to this command, it is run only after a period of 10 seconds. This delay is throughout the entire work station. This example checks whether the password of the user “Hardy” is “Laurel”:
GET USER LIST(atUserName;alUserID) In the On 4D Mobile Authentication database method, you want to test a connection request (using the 4D users of the database). You can just write: $0:=Validate password($1;$2;$3) |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO
GET USER PROPERTIES ARTICLE USAGE
4D Language Reference ( 4D v14 R2) Inherited from : Validate password ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||