Пример #1
0
        public bool SignUpSelfServiceConfirm(string AUserID, string AToken)
        {
            try
            {
                TServerAdminWebConnector.LoginServerAdmin("SELFSERVICE");
                bool Result = TMaintenanceWebConnector.SignUpSelfServiceConfirm(AUserID, AToken);
                Logout();
                return(Result);
            }
            catch (Exception Exc)
            {
                TLogging.Log("An Exception occured during SignUpSelfServiceConfirm:" + Environment.NewLine +
                             Exc.ToString());

                throw;
            }
        }
Пример #2
0
        public string SignUpSelfService(string AEmailAddress, string AFirstName, string ALastName, string APassword, string ALanguageCode, out TVerificationResultCollection AVerification)
        {
            AVerification = new TVerificationResultCollection();

            try
            {
                TServerAdminWebConnector.LoginServerAdmin("SELFSERVICE");
                bool Result = TMaintenanceWebConnector.SignUpSelfService(AEmailAddress, AFirstName, ALastName, APassword, ALanguageCode, out AVerification);
                Logout();
                return("{" + "\"AVerification\": " + THttpBinarySerializer.SerializeObject(AVerification) + "," + "\"result\": " + THttpBinarySerializer.SerializeObject(Result) + "}");
            }
            catch (Exception Exc)
            {
                TLogging.Log("An Exception occured during SignUpSelfService:" + Environment.NewLine +
                             Exc.ToString());

                throw;
            }
        }