public void ActionLogin(LoginModel loginModel) { //if (CPLogin.CheckLogin(loginModel.UserName, loginModel.Password)) //{ if (CPLogin.CheckLogin1(loginModel.UserName, loginModel.Password)) { CPViewPage.SetLog("Đăng nhập hệ thống."); if (string.IsNullOrEmpty(loginModel.ReturnPath)) { CPViewPage.CPRedirectHome(); } else { CPViewPage.Response.Redirect(CPViewPage.Server.UrlDecode(loginModel.ReturnPath)); } } else { CPViewPage.SetLog("Tên đăng nhập '" + loginModel.UserName + "' không thành công."); CPViewPage.Message.MessageType = Message.MessageTypeEnum.Error; CPViewPage.Message.ListMessage.Add("{RS:Login_Error}"); } }
public void ActionSave(UserChangePassModel model) { if (ValidSave(model)) { CPViewPage.SetMessage("Mật khẩu đã thay đổi thành công."); CPViewPage.CPRedirectHome(); } }
public void ActionSave() { if (ValidSave()) { CPViewPage.SetMessage("Thay đổi thông tin thành công."); CPViewPage.CPRedirectHome(); } }
public override void ActionCancel() { CPViewPage.CPRedirectHome(); }