X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister%2Fregister.inc.php;h=9bc05b4067200d37e7acc6bc258c87b1f72483b4;hb=efe597c5795234724bc3df508bd628f9860a9c32;hp=2de153070a2b2569fbb63e1fdadc61c30c96b3d0;hpb=ea74d2785d9c1ff5571ebf2f73c89cbf19c8dd07;p=platal.git
diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php
index 2de1530..9bc05b4 100644
--- a/modules/register/register.inc.php
+++ b/modules/register/register.inc.php
@@ -155,7 +155,7 @@ function create_aliases (&$sub)
$res = XDB::query("SELECT hruid FROM auth_user_md5 WHERE user_id = {?}", $uid);
if ($res->numRows() == 0) {
return "Tu n'as pas d'adresse à vie pré-attribuée.
"
- . "Envoie un mail à mail->domain}\">" .
+ . "Envoie un mail à mail->domain}\">"
. "support@{$globals->mail->domain} en expliquant ta situation.";
} else {
// TODO: at the moment forlife == hruid, however we'll have to change
@@ -225,10 +225,9 @@ function finish_ins($sub_state)
{
global $globals;
extract($sub_state);
- require_once('secure_hash.inc.php');
$pass = rand_pass();
- $pass_encrypted = hash_encrypt($pass);
+ $pass_encrypted = sha1($pass);
$hash = rand_url_id(12);
XDB::execute('UPDATE auth_user_md5 SET last_known_email={?} WHERE matricule = {?}', $email, $mat);