提交 3fe87f7d 编写于 作者: U unknown

修改论坛注销

上级 445fd402
......@@ -346,11 +346,25 @@ MWF.xApplication.Forum.TopNode = new Class({
});
},
logout: function(){
MWF.Actions.get("x_organization_assemble_authentication").logout( function(){
layout.desktop.session.user.distinguishedName = "anonymous";
this.app.clearContent();
this.app.loadApplicationContent();
this.openLoginForm();
}.bind(this))
MWF.Actions.get("x_organization_assemble_authentication").logout(function () {
if (this.socket) {
this.socket.close();
this.socket = null;
}
Cookie.dispose("x-token");
if (layout.session && layout.session.user) layout.session.user.token = "";
// layout.desktop.session.user.distinguishedName = "anonymous";
// this.app.clearContent();
// this.app.loadApplicationContent();
// this.openLoginForm();
// if( callback ){
// callback()
// }else{
window.location.reload();
// }
}.bind(this));
}
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册