Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%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 characters character string,
  • a password is correct.

@FALSE - above mentioned conditions are not fulfilled.

Declaration


Blok kódu
languageesl
themeConfluence
BOOL %AuthUser(
  TEXT in UserName,
  TEXT in pwdMD5
 )
Parameters


UserNamethe D2000 System username.
pwdMD5MD5 Hash of the D2000 System password.
Example


Blok kódu
languageesl
themeRDark
 BEGIN
  IF %AuthUser("Disp11101","d41d8cd98f00b204e9800998ecf8427e") THEN
    MESSAGE "Login ok."
  ENDIF
 END