mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
don't try to pass string literal NOW() to ORM as a timestamp
This commit is contained in:
@@ -237,7 +237,7 @@ class Auth_Internal extends Auth_Base {
|
||||
|
||||
if (hash_equals("$pwd_algo:$raw_hash", $test_hash)) {
|
||||
$pass = ORM::for_table('ttrss_app_passwords')->find_one($row["id"]);
|
||||
$pass->last_used = 'NOW()';
|
||||
$pass->last_used = Db::NOW();
|
||||
|
||||
if ($pwd_algo != UserHelper::HASH_ALGOS[0]) {
|
||||
// upgrade password to current algo
|
||||
|
||||
Reference in New Issue
Block a user