Commit ad5e5c4a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Delete salt when resetting password

parent 5c0452fc
......@@ -189,6 +189,7 @@ function edituser_site_submit(Pieform $form, $values) {
if (isset($values['password']) && $values['password'] !== '') {
$user->password = $values['password'];
$user->salt = '';
}
$user->passwordchange = (int) ($values['passwordchange'] == 'on');
$user->quota = $values['quota'];
......
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