public string registerStep1(string username) { if (User.getSalt(username) != null) { return(null); } return(Server.GetUniqueKey(10)); }
public AuthenticationData authStep1(string username) { string salt = User.getSalt(username); if (salt == null) { throw new FaultException <ServiceErrorMessage>(new ServiceErrorMessage(ServiceErrorMessage.AUTHENTICATIONFAILED)); } String token = Server.GetUniqueKey(20); return(new AuthenticationData(salt, token)); }