Permalink
Browse files

last_accessed を更新しない

  • Loading branch information...
okashoi committed Jul 15, 2017
1 parent 0ccf3de commit d33c5007ba8a0974f9ab441e6cdc48d97556eb21
Showing with 0 additions and 3 deletions.
  1. +0 −3 php/index.php
View
@@ -207,9 +207,6 @@ function markdown($content) {
session_regenerate_id(TRUE);
$_SESSION['user_id'] = $user['id'];
$_SESSION['token'] = hash('sha256', rand(), FALSE);
$stmt = $db->prepare('UPDATE users SET last_access=now() WHERE id = :id');
$stmt->bindValue(':id', $user['id']);
$stmt->execute();
return redirect('/mypage');

0 comments on commit d33c500

Please sign in to comment.