| Syntax |
|
| Documentation | Sets the current user to be the one with the given name and password:
password, the password of the current user. |
| Examples | |
Example 1:
login{Jack}{secret} Result: creates user with the username "Jack" and the password "secret", sets current user to Jack/secret if the username and password are valid
$login{$getCurrent{loginName}} {$getCurrent{passwordName}} $include{onStart} }
$include{onAccess_denied} } Result 2: tries to login as the user specified by the current variables "loginName" and "password", if succeeds current user with its specified access and permission rights is activated and template "onStart" will be included if login with current variables "loginName" and "password" does not succeed, template "onAccess_denied" will be included |
|
| Group | Security |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 2 |
| Maximum parameters | 2 |