X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fmotdepasse.js;h=2e53dc201495308cc5d22fa340c564f34da7c5e1;hb=b00527ff4a4883f2bd8bdfcceb6d4123f19ef785;hp=314b857dacd36ee630e4a409f0d6da6a3490b0fd;hpb=5f30b30e8b2657ade5c727e98de286386ee002d8;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: