diff --git a/lib/user.js b/lib/user.js index 496e1a33..356d4e6a 100644 --- a/lib/user.js +++ b/lib/user.js @@ -214,6 +214,11 @@ Volcanos("user", { {type: html.TD, list: [{text: can.user.trans(can, name, trans)}]}, {type: html.TD, list: [{type: html.INPUT, name: name, data: {type: type||html.TEXT}}]}, ]} } + can.misc.POST(can, can.request(), "http://localhost:9020/code/git/token/get/"+location.host, {}, function(msg) { + can.misc.POST(can, can.request(), "/code/git/token/sid/"+msg.Result(0)+"/"+msg.Result(1), {}, function(msg) { + if (msg.Result() == ice.OK) { cb() } + }) + }) var ui = can.onappend.tabview(can, { "扫码授权": function(target) { can.misc.WSS(can, {type: aaa.LOGIN, name: "", "sess.theme": can.getHeaderTheme()}, function(cmd, arg) { if (cmd == cli.PWD) { var _cmd = " space login "+arg[0]; return can.page.Modify(can, target, arg[2]), can.page.Append(can, target, [