SAWHSDK::login
Description
Logs in a repository on Dynamsoft SourceAnywhere Hosted Server.
Syntax
int login(
String strUserName,
String strPassword,
String strRepository,
BasicDataObject bdobMustChangePassword,
BasicDataObject
bdoiHowManyDaysLaterWillPasswordExpire,
BasicDataObject bdobCanceled,
BasicDataObject bdostrError
);
Parameters
strUserName
[in] Specifies the login username.
strPassword
[in] Specifies the login password.
strRepository
[in] Specifies the name of the repository you want to log in.
bdobMustChangePassword
[out] Returns whether the password must be changed at each login.
bdoiHowManyDaysLaterWillPasswordExpire
[out] Returns the number of days left before the password expires.
bdobCanceled
[out] If the method fails, returns whether the operation is canceled.
bdostrError
[out] Returns the description of the result. If the operation succeeds, returns
'Completed'. If the operation fails, returns the error information.
Return Value
If the method succeeds, returns 0. If the method fails, returns other error codes.