Преглед изворни кода

Merge branch 'hotfix/fix_logout_reload' into 'master'

Merge of hotfix/fix_logout_reload to master

See merge request o2oa/o2oa!101
胡起 пре 5 година
родитељ
комит
fe61068a4d
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      o2web/source/o2_core/o2/xDesktop/Authentication.js

+ 1 - 0
o2web/source/o2_core/o2/xDesktop/Authentication.js

@@ -85,6 +85,7 @@ MWF.xDesktop.Authentication = new Class({
                 this.socket = null;
             }
             Cookie.dispose("x-token");
+            if (layout.session && layout.session.user) layout.session.user.token = "";
             window.location.reload();
         }.bind(this));
     },