diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 5 |
1 files 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 |