mysql complains about last_login being null, use NOW() (closes #35)

This commit is contained in:
Andrew Dolgov 2006-01-22 07:53:49 +01:00
parent 4053b540ba
commit 69c0d75980
1 changed files with 3 additions and 2 deletions

View File

@ -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