Checks user credentials and creates a security token if the credentials are valid.
C# |
Copy Code
|
---|---|
string Login(string username, string password, string custom, bool isPersistent); |
username
A string value indicating the user name to validate.
password
A string value indicating the password for the specified user.
custom
Other string values to validate in addition to the user name and password, if any.
isPersistent
A Boolean value indicating whether the security token remains valid across sessions.
A string value containing the security token if the user credentials are valid; otherwise, null.