Commit c5be3f60 authored by Donal McMullan's avatar Donal McMullan
Browse files

Set 'passwordchange' back to zero when you change the users password

parent 60d0bf38
......@@ -99,6 +99,7 @@ class AuthInternal extends Auth {
// Create a salted password and set it for the user
$user->salt = substr(md5(rand(1000000, 9999999)), 2, 8);
$user->password = $this->encrypt_password($password, $user->salt);
$user->passwordchange = 0;
$user->commit();
return $user->password;
}
......
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