SmarterMail Pro™ Administration Web Services

svcUserAdmin.LoginValidated Method 

Used for testing login credentials.

public LoginResult LoginValidated(
   string Username,
   string Password
);

Parameters

Username
Username to validate
Password
Password for Username

Return Value

A LoginResult instance containing the results of the LoginValidated action.

Remarks

This method returns a LoginResult object with the LoginValidated field set to True if the specified username matches the specified password. Username is the full email address for the specified user of the domain.

e.g. user@domain.net

Example

using System;
using svcUserAdmin;

class svcUserAdminLoginValidated
{
 static void Main()
 {
   svcUserAdmin admin = new svcUserAdmin();
   LoginResult login = admin.LoginValidated("admin@domain.net", "alskdjfhtt");

   if(login.LoginValidated)
     Console.WriteLine ("User credentials are valid for this domain.")   
   else
     Console.WriteLine ("User credentials are NOT valid for this domain.")   
}

See Also

svcUserAdmin Class | svcUserAdmin Namespace