Commit 37d93468 authored by Ayolo's avatar Ayolo
Browse files

bleh

parent b2acded4
......@@ -524,7 +524,7 @@ class utilisateur extends stdentity
function is_password ( $password )
{
// if ($this->pass == crypt($password, substr($this->pass,0,2)))
if ($this->pass == crypt($password, md5("ae")))
if ($this->pass == crypt($password, "ae"))
return true;
return false;
}
......@@ -534,7 +534,7 @@ class utilisateur extends stdentity
*/
function change_password ( $new_password )
{
$this->pass = crypt($new_password, md5("ae"));
$this->pass = crypt($new_password, "ae");
$req = new update($this->dbrw,
"utilisateurs",
array("pass_utl"=>$this->pass),
......@@ -1047,7 +1047,7 @@ class utilisateur extends stdentity
$this->alias = null;
else
$this->alias = $alias;
$this->pass = crypt($password, md5("ae"));
$this->pass = crypt($password, "ae");
$this->sexe = $sexe;
$this->date_naissance = $date_naissance;
$this->droit_image = $droit_image;
......@@ -1210,7 +1210,7 @@ class utilisateur extends stdentity
if (!$password)
$password = genere_pass(7);
$this->pass = crypt($password, md5("ae"));
$this->pass = crypt($password, "ae");
$this->etudiant = $etudiant==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