]> git.wh0rd.org Git - tt-rss.git/commitdiff
mysql complains about last_login being null, use NOW() (closes #35)
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 22 Jan 2006 06:53:49 +0000 (07:53 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 22 Jan 2006 06:53:49 +0000 (07:53 +0100)
backend.php

index 020744073278b5868106200a9ccae67ca621d061..e5d93ee0d0aa6ecae0bcdccdba27337394aceaa9 100644 (file)
                                $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