Skip to content

Commit

Permalink
Re-set $user->{logtoken} after changing it
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Jan 29, 2004
1 parent 140202e commit 4c46fea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions themes/slashcode/htdocs/users.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}

Expand Down

0 comments on commit 4c46fea

Please sign in to comment.