I have a function in codeunit as
ValidateCredentials(Domain : Text;Username : Text;Password : Text) : Boolean
UserAccount := UserAccount.PrincipalContext(ContextType.Domain,Domain);
IF UserAccount.ValidateCredentials(Username,Password) THEN BEGIN
User Name and passwords were being authenticated before two days but till now i am not able to login without comment as
ValidateCredentials(Domain : Text;Username : Text;Password : Text) : Boolean
//UserAccount := UserAccount.PrincipalContext(ContextType.Domain,Domain);
//IF UserAccount.ValidateCredentials(Username,Password) THEN BEGIN
please help me to resolve it.
*This post is locked for comments