Function "LoginUser()" |
![]() ![]() ![]() |
Logins a user to the current security domain. Syntax: LoginUser(username[, password, multiple-login-allowed])
Parameters: username the name of the user to logon password the password for the user multiple-login-allowed Optional parameter. The default is true. If the value of this parameter is false then it means it is not allowed to login more than one at the same time and the latest login with the same user name will purge the previous session.
Completion Codes: 0: Normal completion 8: username not found or disabled or password is incorrect. 12: Syntax error or Security Broker error
Examples: LoginUser('sa', 'mmsa') LoginUser('sa', 'mmsa', false)
Suspending An User If an user enters wrong password more than the times defined in Component Property "Maximum Tries" then he is suspended and a pool variable named user_suspended is created and assigned value "true". By controlling this variable custom solutions can be implemented.
LoginUser('sa', 'mmsa') @doif(bv:user_suspended) @// Do something... @doend()
See SML Functions
|