X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fmotdepasse.js;h=2e53dc201495308cc5d22fa340c564f34da7c5e1;hb=3bf63218202858287bb150aa33fc86300203f833;hp=314b857dacd36ee630e4a409f0d6da6a3490b0fd;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/htdocs/javascript/motdepasse.js b/htdocs/javascript/motdepasse.js index 314b857..2e53dc2 100644 --- a/htdocs/javascript/motdepasse.js +++ b/htdocs/javascript/motdepasse.js @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2003-2008 Polytechnique.org * + * Copyright (C) 2003-2009 Polytechnique.org * * http://opensource.polytechnique.org/ * * * * This program is free software; you can redistribute it and/or modify * @@ -39,4 +39,11 @@ function EnCryptedResponse() { document.forms.changepass2.submit(); return true; } + +function EncryptedResponseInNestedForm() { + $('[name=nouveau]').val($('[name=password]').val()); + $('[name=nouveau2]').val($('[name=password2]').val()); + EnCryptedResponse(); +} + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: