Commit b2acded4 authored by Ayolo's avatar Ayolo
Browse files

bleh

parent 24e6abb3
...@@ -523,7 +523,8 @@ class utilisateur extends stdentity ...@@ -523,7 +523,8 @@ class utilisateur extends stdentity
*/ */
function is_password ( $password ) function is_password ( $password )
{ {
if ($this->pass == crypt($password, substr($this->pass,0,2))) // if ($this->pass == crypt($password, substr($this->pass,0,2)))
if ($this->pass == crypt($password, md5("ae")))
return true; return true;
return false; return false;
} }
...@@ -533,7 +534,7 @@ class utilisateur extends stdentity ...@@ -533,7 +534,7 @@ class utilisateur extends stdentity
*/ */
function change_password ( $new_password ) function change_password ( $new_password )
{ {
$this->pass = crypt($new_password, "ae"); $this->pass = crypt($new_password, md5("ae"));
$req = new update($this->dbrw, $req = new update($this->dbrw,
"utilisateurs", "utilisateurs",
array("pass_utl"=>$this->pass), array("pass_utl"=>$this->pass),
...@@ -1046,7 +1047,7 @@ class utilisateur extends stdentity ...@@ -1046,7 +1047,7 @@ class utilisateur extends stdentity
$this->alias = null; $this->alias = null;
else else
$this->alias = $alias; $this->alias = $alias;
$this->pass = crypt($password, "ae"); $this->pass = crypt($password, md5("ae"));
$this->sexe = $sexe; $this->sexe = $sexe;
$this->date_naissance = $date_naissance; $this->date_naissance = $date_naissance;
$this->droit_image = $droit_image; $this->droit_image = $droit_image;
...@@ -1209,7 +1210,7 @@ class utilisateur extends stdentity ...@@ -1209,7 +1210,7 @@ class utilisateur extends stdentity
if (!$password) if (!$password)
$password = genere_pass(7); $password = genere_pass(7);
$this->pass = crypt($password, "ae"); $this->pass = crypt($password, md5("ae"));
$this->etudiant = $etudiant==true; $this->etudiant = $etudiant==true;
$this->modere = true; $this->modere = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment