From 33d3291ac93e6ec9800c84268ddb216bbe368f7c Mon Sep 17 00:00:00 2001 From: linxiaozhi Date: Sat, 16 Feb 2019 23:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=9C=AA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E4=BB=85=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=EF=BC=8C=E4=B8=8D=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/user.go | 2 +- views/user/edit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/user.go b/controllers/user.go index dce8e59..2fdfff5 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -76,5 +76,5 @@ func (self *UserController) AjaxSave() { if err := Admin.Update(); err != nil { self.ajaxMsg(err.Error(), MSG_ERR) } - self.ajaxMsg("", MSG_OK) + self.ajaxMsg("修改成功", MSG_OK) } diff --git a/views/user/edit.html b/views/user/edit.html index f4edd1e..9a2f939 100644 --- a/views/user/edit.html +++ b/views/user/edit.html @@ -101,7 +101,7 @@ form.on('submit(sub)', function(data){ var form_data = $("form").serialize(); $.post('{{urlfor "UserController.AjaxSave"}}', form_data, function (out) { - if (out.status == 0) { + if (out.status == 0 && form_data.reset_pwd == 1) { layer.msg("操作成功,请重新登录",{icon: 1,shade:0.3,time:1000},function () { top.location.href="/login_out" })