ptut-vhost/webpack/data/login.js

12 lines
445 B
JavaScript

gstore.add('popup_click', function(){
/* (1) Open popup */
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);
});
gstore.add('login_class', 'neutral');
gstore.add('login_error_text', '');