Logon - method of object Pm

Login of the local user without the input window.
Logon(sName As String, sPassword As String) As Long
Pm.Logon sName, sPassword
sName(String) Login name (name not identifier) of the local user
sPassword(String) Login password of the local user
Return Values:
0 - Login succesfull.
1 - User not registered, log in failed.
2 - Password incorrect, log in failed.
-1 - Missing parameters, log in failed.
Registering by means of the Logon method rather skips the logon window of the local user, but then the normal login process proceeds and it is equal to registering by the login window. This means that the entered data are compared with the list of users and then calling the PmRoot.onUserLogonBegin event follows with default parameters. Only after that it is decided whether the login process of the local user passed.
The method can also be called in the graphic item events for Web Panels. User login on the WEB cannot be competed wihout the user confirming the login and therefore does the same thing as the WndLogon method - opens new user login window (the parameters sName and sPassword are not used).

In order to make the method correctly functional in the WEB panel, it is necessary to configure the panel (PmPanel object), where the method is called, to mange the WebRead, to force every WEB user to log in.

- Pm
- Abs
- Cos
- E
- Exp
- LN2
- Logon
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice