Ilumnis Authentication

IAuthenticationValidator.ValidateUserName Method 

Validates userName and adds custom message to exception, if one is thrown.

string ValidateUserName(
   string userName,
   string message
);

Parameters

userName
User name to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated user name.

Exceptions

Exception Type Condition
InvalidUserNameException Thrown when invalid userName is passed.

See Also

IAuthenticationValidator Interface | IExSys.Authentication.Validation Namespace