projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proof of concept:
[platal.git]
/
htdocs
/
register
/
success.php
diff --git
a/htdocs/register/success.php
b/htdocs/register/success.php
index
cefe91b
..
ec3f678
100644
(file)
--- a/
htdocs/register/success.php
+++ b/
htdocs/register/success.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
6
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-31,14
+31,14
@@
if (Env::has('response2')) {
$log->log('passwd', '');
if (Cookie::get('ORGaccess')) {
$log->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->assign('mdpok', true);
}
-$page->addJsLink('javascript/md5.js');
-$page->addJsLink('javascript/motdepassemd5.js');
+$page->addJsLink('javascript/motdepasse.js');
$page->run();
?>
$page->run();
?>