Log in to the database with the given user and password. Returns true if the login succeeded.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxbool Login(
string Username,
string Password
)
Function Login (
Username As String,
Password As String
) As Boolean
Dim instance As IDatabase
Dim Username As String
Dim Password As String
Dim returnValue As Boolean
returnValue = instance.Login(Username,
Password)
bool Login(
[InAttribute] String^ Username,
[InAttribute] String^ Password
)
Parameters
- Username
- Type: SystemString
SuperOffice UserID - Password
- Type: SystemString
SuperOffice password
Return Value
Type:
Booleantrue = login successful
false = login failed
ExamplesLogin and get users country
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Set objSO = CreateObject("SuperOfficeDB.Database")
if objSO.login ("", "") = true then
Msg = "AD authentication"
Else
objSO.login "ADM0", ""
Msg = "SuperOffice authentication"
End If
msgbox Msg & vbCrLf & "Safecredentials: " & objSO.SafeCredentials
See Also