예제 #1
0
 public string registerStep1(string username)
 {
     if (User.getSalt(username) != null)
     {
         return(null);
     }
     return(Server.GetUniqueKey(10));
 }
예제 #2
0
        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));
        }