X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister%2Fregister.inc.php;h=6ac78ad17365392744527f873a9e6d208fc922a5;hb=d2100923749766ffcf61745b0145cf82a3886716;hp=2de153070a2b2569fbb63e1fdadc61c30c96b3d0;hpb=a0c034efcf0777541e087500e94853f515cda1ca;p=platal.git
diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php
index 2de1530..6ac78ad 100644
--- a/modules/register/register.inc.php
+++ b/modules/register/register.inc.php
@@ -1,6 +1,6 @@
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);