4D v13.4Validate password |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Validate password
|
Validate password ( userID ; password ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
userID | Longint |
![]() |
Unique user ID | |||||
password | String |
![]() |
Unencrypted password | |||||
Function result | Boolean |
![]() |
True = valid password False = invalid password | |||||
Validate password returns True if the string passed in password is the password for the user account whose ID number is passed in userID.
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)
$vlElem:=Find in array(atUserName;"Hardy")
If($vlElem>0)
If(Validate password(alUserID{$vlElem};"Laurel"))
ALERT("Yep!")
Else
ALERT("Too bad!")
End if
Else
ALERT("Unknown user name")
End if
Product: 4D
Theme: Users and Groups
Number:
638
Modified: 4D 2004
GET USER PROPERTIES
Set user properties
WEB Validate digest