summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c2d5f11)
Value became invalid after changes to hashing and edit page.
-function passform($user, $input = [])
+function passform(&$user, $input = [])
{
if (empty($user)) {
return "Log eerst (opnieuw?) in.";
{
if (empty($user)) {
return "Log eerst (opnieuw?) in.";
@unlink("{$user['dir']}/.token"); # invalidate reset token
@unlink("{$user['dir']}/.token"); # invalidate reset token
- $authhash = md5($input['newpass']);
+ $authhash = md5($passstore);
$user['auth'] = "{$user['name']}:$authhash";
if ($GLOBALS['User'] === $user) {
login_setcookie();
$user['auth'] = "{$user['name']}:$authhash";
if ($GLOBALS['User'] === $user) {
login_setcookie();