%AuthUser function


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

It returns @TRUE providing that:

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

@FALSE - above mentioned conditions are not fulfilled.


Declaration
BOOL %AuthUser(
  TEXT in UserName,
  TEXT in pwdMD5
 )

Parameters
UserName D2000 System username.
pwdMD5 MD5 Hash of the D2000 System password.

Example
 BEGIN
  IF %AuthUser("Disp11101","d41d8cd98f00b204e9800998ecf8427e") THEN
    MESSAGE "Login ok."
  ENDIF
 END 

Napíšte komentár