protected void btnConfirm_Click(object sender, EventArgs e) { if (IsUserAlreadyLogin) { if (!XiHuan_UserFacade.IsUserValid(CurrentUserName, txtOldPassWord.Text)) { Alert("原密码不正确"); return; } else { XiHuan_UserInfoEntity modifypwd = XiHuan_UserInfoEntityAction.RetrieveAXiHuan_UserInfoEntity(CurrentUserId); if (modifypwd != null) { modifypwd.OrignalPwd = txtNewPassWord.Text.Trim(); modifypwd.Md5Pwd = CommonMethod.MD5Encrypt(txtNewPassWord.Text.Trim()); modifypwd.Save(); Alert("恭喜:您的密码已成功修改!"); } } } else { MemberCenterPageRedirect("", "modifypwd"); } }
protected void lnkUnLockUser_Click(object sender, EventArgs e) { int id = CommonMethod.ConvertToInt(hidId.Value, 0); if (id > 0) { XiHuan_UserInfoEntity user = new XiHuan_UserInfoEntity(); user.ID = id; user.Retrieve(); if (user.IsPersistent) { user.IsLocked = 0; user.Save(); Alert("已解除锁定此账号!"); GetDetail(); } } }