Click or drag to resize

IDatabaseLogin Method

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
Syntax
bool Login(
	string Username,
	string Password
)

Parameters

Username
Type: SystemString
SuperOffice UserID
Password
Type: SystemString
SuperOffice password

Return Value

Type: Boolean

true = login successful

false = login failed

Examples

Login and get users country

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Set objSO = CreateObject("SuperOfficeDB.Database")

'Try login with AD authentication first
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