X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fregister%2Fsuccess.php;h=ec3f67805463408890a64f028af80a524aea7c26;hb=b62f88580b5d5a12e804094ddc46033b62a8dbff;hp=cefe91bdbfe955bd493a97ab4a8c36b74b05ef49;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/htdocs/register/success.php b/htdocs/register/success.php index cefe91b..ec3f678 100644 --- a/htdocs/register/success.php +++ b/htdocs/register/success.php @@ -1,6 +1,6 @@ log('passwd', ''); if (Cookie::get('ORGaccess')) { - setcookie('ORGaccess', md5($password), (time()+25920000), '/', '' ,0); + require_once('secure_hash.inc.php'); + setcookie('ORGaccess', hash_encrypt($password), (time()+25920000), '/', '' ,0); } $page->assign('mdpok', true); } -$page->addJsLink('javascript/md5.js'); -$page->addJsLink('javascript/motdepassemd5.js'); +$page->addJsLink('javascript/motdepasse.js'); $page->run(); ?>