$login

Sets the current user to be the one with the given name and password.
Syntax
    $login{username}{password}
DocumentationSets the current user to be the one with the given name and password:

    Parameters:
      username, the name of the current user.
      password, the password of the current user.
Examples
Example 1:
    $createUser{Jack}{secret}
    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
Example 2:
    $try
      {
      $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
GroupSecurity
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 2