OpenWGA 7.11 - TMLScript reference

Method :

login(user, password)

On object Auth
Usage Executes a user login in TMLScript
Description This method can permanently login the web user to a domain for the current browser session. It performs the same operation that an OpenWGA login page would do. The login information will be stored to the user session and used to open all databases in the given domain.

A successful login takes effect immediately. Databases of this domain that already have been opened in the current request will be automatically reopened with the new login information.

Eventually Unsaved changes to documents in those reopened databases will be dropped.

For backward compatibility there still is a method "login()" available on TMLContext whose use is discouraged since OpenWGA 5.3.

Parameters user (String): The username to login

password (String): The password for the username
Return value true on a successful login, false otherwise
Allowed in script types
  • WebTML pages and normal WebTML actions