Vai al contenuto

UserLogin

Visual component containing two prompts: user and password.Lets you change the active user and therefore change access privileges to pages.Use the “Change pwd” button to change the password of the active user (except for the default user).It has the following properties:
  • btn_login: indicates if the “login” button must be visible.
  • btn_logout: indicates if the “logout” button must be visible.
  • btn_change: indicates if the “change pwd” button must be visible.
  • timeOut: time out in seconds after which the component, regardless of the active user, returns the system to default user level (a logoff is done automatically). Default value: 600 seconds (10 minutes). Set 0 (zero) to deactivate the auto-logoff function. Note: the timeout restarts every time data is set.
  • stringID: string number in the string database for the active language, containing labels to assign to the components in UserLogin. The single labels are separated by “;” and are in the following order: Label with “User”;Label with “Password”;Button “Login”;Button “Logout”;Button “Change Pwd”. Example: User;Pwd;Login;Logoff If stringID is not assigned, the default string is used: “User:;Password:;Login;Logout;Change pwd”
Publishes the following events:
  • onLoginOk: triggered by a Login being correctly entered or by a Logout.
  • OnLoginError: triggered by a Login being incorrectly entered.
New system variables that are useful for diagnostics are available:@@LEVEL_PREV, @@USER_REQ, @@USER_PREV. Refer to the chapter ‘System Variables for pages’ for the meanings of the new variables.