public string AuthenticateUser(string xmlLogon, string xmlPassword) { svcXMLHandler = new SVC_XMLHandler(); svcAuthenticateUser = new SVC_AuthenticateUser(); lclUsername = svcXMLHandler.DecodeXML(xmlLogon); lclPassword = svcXMLHandler.DecodeXML(xmlPassword); logonFound = svcAuthenticateUser.AuthenticateLogon(lclUsername); passwordFound = svcAuthenticateUser.AuthenticatePassword(lclPassword); if ((logonFound && passwordFound) == true) { verifiedLogon = lclUsername; return verifiedLogon; } else { return "User not verified"; } }
public string WSAuthenticateUser() { svcXMLHandler = new SVC_XMLHandler(); xmlLogon = svcXMLHandler.UserNameEncodeXML(logon); xmlPassword = svcXMLHandler.PasswordEncodeXML(password); WSAuthenticate.Service1 wsClient = new WSAuthenticate.Service1(); string wcfOutput = wsClient.AuthenticateUser(xmlLogon, xmlPassword); return wcfOutput; }