public ActionResult PersonalInformation()
        {
            LoginUser   loginUser = (LoginUser)Session["CurrentLoginUser"];
            AccountInfo account   = new AccountSettingManager().GetAccountInfo(loginUser.UserId);

            return(View(account));
        }
        public JsonResult ChangeAccountPassword(string accountPwdJsonStr)
        {
            ChangePasswordInfo           pwdInfo = JsonConvert.DeserializeObject <ChangePasswordInfo>(accountPwdJsonStr);
            ChangePasswordValidateResult vResult = new AccountSettingManager().ChangeAccountPassword(pwdInfo.UserId, pwdInfo.OldPassword, pwdInfo.NewPassword);

            return(Json("success", JsonRequestBehavior.AllowGet));
        }
        public JsonResult CheckAccountUserName(string username, int userId)
        {
            bool vResult = new AccountSettingManager().CheckAdminAccountUserName(username, userId);

            return(Json(vResult, JsonRequestBehavior.AllowGet));
        }
        public JsonResult CheckPhoneIsValid(string phone, int userId)
        {
            bool vResult = new AccountSettingManager().CheckPhoneIsValid(phone, userId);

            return(Json(vResult, JsonRequestBehavior.AllowGet));
        }
        public JsonResult CheckOldPassword(int userId, string oldPwd)
        {
            bool vResult = new AccountSettingManager().CheckOldPassword(userId, oldPwd);

            return(Json(vResult, JsonRequestBehavior.AllowGet));
        }
Exemple #6
0
 public SecurityPage()
 {
     this.InitializeComponent();
     Accounts = AccountManager.GetAccounts();
     Sample   = AccountSettingManager.GetAccountSetting();
 }