mysql complains about last_login being null, use NOW() (closes #35)
This commit is contained in:
parent
4053b540ba
commit
69c0d75980
|
@ -3585,8 +3585,9 @@
|
||||||
$tmp_user_pwd = make_password(8);
|
$tmp_user_pwd = make_password(8);
|
||||||
$pwd_hash = 'SHA1:' . sha1($tmp_user_pwd);
|
$pwd_hash = 'SHA1:' . sha1($tmp_user_pwd);
|
||||||
|
|
||||||
db_query($link, "INSERT INTO ttrss_users (login,pwd_hash,access_level)
|
db_query($link, "INSERT INTO ttrss_users
|
||||||
VALUES ('$login', '$pwd_hash', 0)");
|
(login,pwd_hash,access_level,last_login)
|
||||||
|
VALUES ('$login', '$pwd_hash', 0, NOW())");
|
||||||
|
|
||||||
|
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_users WHERE
|
$result = db_query($link, "SELECT id FROM ttrss_users WHERE
|
||||||
|
|
Loading…
Reference in New Issue