public CheckAliasResult CheckAlias(LoginData data)
        {
            try
            {
                if (!data.Authenticate())
                {
                    return(CheckAliasResult.InvalidLogin);
                }

                return(Validation.ValidateAlias(data.Username, data.Password, data.Alias));
            }
            catch (Exception error)
            {
                Error.Write(error);
                throw;
            }
        }
        public CheckAliasResult CreateAlias(LoginData data)
        {
            try
            {
                if (!data.Authenticate())
                {
                    return(CheckAliasResult.InvalidLogin);
                }

                //if (data.CheckCaptcha() == false)
                //	return CheckAliasResult.CaptchaFailed;

                return(Validation.CreateAlias(data.Username, data.Password, data.Alias, data.LegacyPassword));
            }
            catch (Exception error)
            {
                Error.Write(error);
                throw;
            }
        }