[webpack.login] added custom error code (-5) 'popup_interrupted'

This commit is contained in:
xdrm-brackets 2018-03-20 11:49:26 +01:00
parent e301a7eb2e
commit e32ce89837
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ gstore.add('popup_click', function(){
!isNaN(window.popint) && clearInterval(window.popint); !isNaN(window.popint) && clearInterval(window.popint);
/* (5) Check if popup closed -> abort */ /* (5) Check if popup closed -> abort */
window.popint = setInterval(function(){ window.pop.closed && window.cas_callback(-2); }, 500); window.popint = setInterval(function(){ window.pop.closed && window.cas_callback(-5); }, 500);

View File

@ -63,6 +63,9 @@ window.cas_callback = function(cas_login){
case -4: case -4:
gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.<br>(errcode: no_matching_professor)'; gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.<br>(errcode: no_matching_professor)';
break; break;
case -5:
gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.<br>(errcode: popup_interrupt)';
break;
} }
// re-activate button // re-activate button