From fa83d62d72f14a40230ea9264ce6c218353962b6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 3 Mar 2018 16:25:39 +0100 Subject: [PATCH] [webpack.login.data] now works with localhost|xdrm.io (used processed 'api.target') --- webpack/data/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/data/login.js b/webpack/data/login.js index e54a387..98e3dbd 100644 --- a/webpack/data/login.js +++ b/webpack/data/login.js @@ -1,7 +1,7 @@ gstore.add('popup_click', function(){ /* (1) Open popup */ - window.pop = window.open('https://sso.univ-pau.fr/cas/login?service=http://ptut.com:8080/api/v/1.0/cas', '_blank', 'location=no,height=1024,width=1024,scrollbars=yes,status=no'); + window.pop = window.open('https://sso.univ-pau.fr/cas/login?service='+window.api.target+'cas', '_blank', 'location=no,height=1024,width=1024,scrollbars=yes,status=no'); /* (2) If popup closed -> abort */ window.popint = setInterval(function(){ window.pop.closed && window.cas_callback(null); }, 500);