The Login method authenticates a username and password against the Login
database. The Login database can be maintained by any ptSuperAdmin
account or via the Admin Utility (which also
requires a ptSuperAdmin
account).
Return Type
BOOL
Syntax
Login (BSTR Username, BSTR Password) |
Remarks
The Login method returns TRUE if the login was successful, or FALSE if the
login was unsuccessful. If the login was unsuccessful, an error will be thrown:
1004 Access denied: Inadequate
permission
1005 Access denied: User not logged in
1039 Invalid username
1040 Invalid password
1041 Access denied: account has expired
1042 Access denied: user already logged in
(see Administration)
See Also
Logout, Connection Object, Login Database, Administration, Error Codes