Commit 88af76bf authored by Ayolo's avatar Ayolo
Browse files

test

parent 02f26152
......@@ -523,8 +523,7 @@ class utilisateur extends stdentity
*/
function is_password ( $password )
{
// if ($this->pass == crypt($password, substr($this->pass,0,2) ))
if ($this->pass == crypt($password,$this->pass))
if (md5($this->pass) == md5(crypt($password, substr($this->pass,0,2))))
return true;
return false;
}
......
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