个人信息未修改密码仅提示结果,不退出登录

This commit is contained in:
linxiaozhi
2019-02-16 23:48:56 +08:00
parent 2107266fd2
commit 33d3291ac9
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}

View File

@@ -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"
})