From 69c0d7598042b3f3d3e75f1a1c1da6016e0d2d34 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 22 Jan 2006 07:53:49 +0100 Subject: [PATCH] mysql complains about last_login being null, use NOW() (closes #35) --- backend.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend.php b/backend.php index 020744073..e5d93ee0d 100644 --- a/backend.php +++ b/backend.php @@ -3585,8 +3585,9 @@ $tmp_user_pwd = make_password(8); $pwd_hash = 'SHA1:' . sha1($tmp_user_pwd); - db_query($link, "INSERT INTO ttrss_users (login,pwd_hash,access_level) - VALUES ('$login', '$pwd_hash', 0)"); + db_query($link, "INSERT INTO ttrss_users + (login,pwd_hash,access_level,last_login) + VALUES ('$login', '$pwd_hash', 0, NOW())"); $result = db_query($link, "SELECT id FROM ttrss_users WHERE