Permalink
Browse files

Re-set $user->{logtoken} after changing it

  • Loading branch information...
pudge committed Jan 29, 2004
1 parent 140202e commit 4c46fea6acf09501def21f14ffd60fdfc893920c
Showing with 2 additions and 3 deletions.
  1. +2 −3 themes/slashcode/htdocs/users.pl
@@ -2027,9 +2027,8 @@ sub savePasswd {
# only set cookie if user is current user
if ($form->{uid} eq $user->{uid}) {
my $value = $slashdb->getLogToken($form->{uid}, 1);
my $cookie = bakeUserCookie($uid, $slashdb->getLogToken($form->{uid}, 1));
setCookie('user', $cookie, $user_edits_table->{session_login});
$user->{logtoken} = bakeUserCookie($uid, $slashdb->getLogToken($form->{uid}, 1));
setCookie('user', $user->{logtoken}, $user_edits_table->{session_login});
}
}

0 comments on commit 4c46fea

Please sign in to comment.