[webpack.login] added custom error code (-5) 'popup_interrupted'
This commit is contained in:
parent
e301a7eb2e
commit
e32ce89837
|
@ -16,7 +16,7 @@ gstore.add('popup_click', function(){
|
|||
!isNaN(window.popint) && clearInterval(window.popint);
|
||||
|
||||
/* (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);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -63,6 +63,9 @@ window.cas_callback = function(cas_login){
|
|||
case -4:
|
||||
gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.<br>(errcode: no_matching_professor)';
|
||||
break;
|
||||
case -5:
|
||||
gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.<br>(errcode: popup_interrupt)';
|
||||
break;
|
||||
}
|
||||
|
||||
// re-activate button
|
||||
|
|
Loading…
Reference in New Issue