%AuthUser function


Function
The function checks a user (set in the function parameters) against the D2000 System.

It returns @TRUE providing that:

  • a user name meets the conditions of an object of the User type,
  • MD5 is a 32 character string,
  • a password is correct.

@FALSE - above mentioned conditions are not fulfilled.

Declaration
BOOL %AuthUser(
  TEXT in UserName,
  TEXT in pwdMD5
 )
Parameters
UserNamethe D2000 System username.
pwdMD5MD5 Hash of the D2000 System password.
Example
 BEGIN
  IF %AuthUser("Disp11101","d41d8cd98f00b204e9800998ecf8427e") THEN
    MESSAGE "Login ok."
  ENDIF
 END 
Napíšte komentár