Login
Function to login the system with a user.
Syntax:
Int Login();
Display
a popup window to the user login.
Int Login(String sLogin);
Display a popup window with the user login already configured in
the user login field.
Int Login(String sUser,String
sPassword);
The login will be done (if the user
and password is correct), but will not display any message.
Params:
String sLogin: A String parameter containing the login of the user that will logged in.
String sPassword: A String parameter containing a password of the user that will logged in.
Return:
0: Login successfully.
1: User not found.
2: Password incorrect.
Example:
Display a window to make the login.
SVSecurity.Login();
|
Display a window to make login with the user name already configured.
SVSecurity.Login("admin");
|
Login with user 'admin' that has the password 'adm123'.
SVSecurity.Login("admin","adm123");
|