[webpack.login] re-activate button after fail attempt + debug message as raw-html

This commit is contained in:
xdrm-brackets 2018-03-20 10:25:30 +01:00
parent 0486110f2b
commit 67e0f9eba2
2 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,9 @@ window.cas_callback = function(cas_login){
gstore.get.login_error_text = 'Erreur de connexion. Veuillez réessayer.';
gstore.get.login_class = 'invalid';
// re-activate button
gstore.add('popup_opened', false);
setTimeout(function(){ gstore.get.login_class = 'neutral'; }, 1500);
/* (4) If error code -> display error */
@ -62,6 +65,9 @@ window.cas_callback = function(cas_login){
break;
}
// re-activate button
gstore.add('popup_opened', false);
setTimeout(function(){ gstore.get.login_class = 'neutral'; }, 1500);
/* (4) If login -> reload page */

View File

@ -6,7 +6,7 @@
<div class='icon' @mouseover='gstore.icon.start' @mouseout='gstore.icon.stop'></div>
<div class='title'><b>P</b><i>lateforme</i> <b>A</b><i>ssistée de</i> <b>T</b><i>raitement</i> <b>A</b><i>dministratif des</i> <b>T</b><i>aches d'</i><b>E</b><i>nseignement</i></div>
<button :class='gstore.login_class' @click='gstore.popup_click'>Me connecter</button>
<span :class='gstore.login_class'>{{ gstore.login_error_text }}</span>
<span :class='gstore.login_class' v-html='gstore.login_error_text'></span>
</div>