public static int UpdateInformation(string FirstName, string LastName, string OldPassword, string NewPassword)
        {
            string UserName;

            try { UserName = Subscription.GetCookieValue("MyTestCookie"); }
            catch (HttpException ex) { return(-1); }

            return(UpdateInformationHelper(UserName, FirstName, LastName, OldPassword, NewPassword));
        }
Пример #2
0
        /// <summary>
        /// Checks if user has been given permissions to create new users
        /// </summary>
        /// <returns></returns>
        private static bool CanCreate()
        {
            String CanCreate;

            try { CanCreate = Subscription.GetCookieValue("CanCreate"); }
            catch (HttpException ex) { return(false); }

            if (CanCreate.Equals("false"))
            {
                return(false);
            }

            return(true);
        }