Skip to content
Permalink
Browse files

no update last_access

  • Loading branch information...
karupanerura committed Oct 5, 2013
1 parent 46f565f commit bf68e8197e3d3e2184fdde4fe39bb52622260ba5
Showing with 4 additions and 4 deletions.
  1. +4 −4 perl/lib/Isucon3/Web.pm
@@ -220,10 +220,10 @@ post '/signin' => [qw(session)] => sub {
my $session = $c->req->env->{"psgix.session"};
$session->{user_id} = $user->{id};
$session->{token} = sha256_hex(rand());
$self->dbh->query(
'UPDATE users SET last_access=now() WHERE id=?',
$user->{id},
);
# $self->dbh->query(
# 'UPDATE users SET last_access=now() WHERE id=?',
# $user->{id},
# );
return $c->redirect('/mypage');
}
else {

0 comments on commit bf68e81

Please sign in to comment.
You can’t perform that action at this time.