X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fdo_challenge_response.js;h=77ad25347edaf703982efa8434e9027c02f12e47;hb=92a1bac41fe16d9d8a50ad92540b0d5c1a7b63b1;hp=419d1f0e7288ccb17790a14c14b45cff0ad90fab;hpb=46bde4d1fc8554263750f769f5ada4e304785d5e;p=platal.git diff --git a/htdocs/javascript/do_challenge_response.js b/htdocs/javascript/do_challenge_response.js index 419d1f0..77ad253 100644 --- a/htdocs/javascript/do_challenge_response.js +++ b/htdocs/javascript/do_challenge_response.js @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2003-2006 Polytechnique.org * + * Copyright (C) 2003-2008 Polytechnique.org * * http://opensource.polytechnique.org/ * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,6 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -document.write(''); - function correctUserName() { var u = document.forms.login.username; // login with no space @@ -36,7 +34,7 @@ function correctUserName() { // jean paul dupont -> jean-paul.dupont if (mots.length == 3 && mots[0].toUpperCase() == 'JEAN') { u.value = mots[0]+"-"+mots[1]+"."+mots[2]; return true; } - alert('Ton email ne doit pas contenir de blanc.\nLe format standard est\n\nprenom.nom.promotion\n\nSi ton nom ou ton prenom est composé,\nsépare les mots par des -'); + alert('Ton email ne doit pas contenir de blanc.\nLe format standard est\n\nprenom.nom.promotion\n\nSi ton nom ou ton prenom est composé,\nsépare les mots par des -'); return false; } @@ -61,3 +59,4 @@ function doChallengeResponse() { document.forms.loginsub.submit(); } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: