X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fmotdepasse.js;h=17864f2f2a12880a726faccf16cfe1416f9b0233;hb=c3b581dc531c40960509e3115d8c61ebd5897ee3;hp=353a8adaf49f432143b3232080bdce735a8766a7;hpb=0783a5ed4d3409bcd7a7e1d908696159999810c8;p=platal.git diff --git a/htdocs/javascript/motdepasse.js b/htdocs/javascript/motdepasse.js index 353a8ad..17864f2 100644 --- a/htdocs/javascript/motdepasse.js +++ b/htdocs/javascript/motdepasse.js @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2003-2009 Polytechnique.org * + * Copyright (C) 2003-2010 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: