Sfoglia il codice sorgente

Merge branch 'feature/web-url-xtoken' into 'develop'

[登录]增加url x-token 登录

See merge request o2oa/o2oa!501
o2null 5 anni fa
parent
commit
073efd3482
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      o2web/source/x_desktop/js/base.js

+ 8 - 0
o2web/source/x_desktop/js/base.js

@@ -437,6 +437,14 @@ o2.addReady(function () {
                 _loadContent();
                 _loadContent();
             })(layout);
             })(layout);
         };
         };
+
+        //修改支持x-token
+        var uri = new URI(window.location.href);
+        var options = uri.get("data");
+        if(options["x-token"]){
+            Cookie.write("x-token", options["x-token"]);
+        }
+
         //先判断用户是否登录
         //先判断用户是否登录
         o2.Actions.get("x_organization_assemble_authentication").getAuthentication(function (json) {
         o2.Actions.get("x_organization_assemble_authentication").getAuthentication(function (json) {
             //已经登录
             //已经登录