个人信息未修改密码仅提示结果,不退出登录
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user