summaryrefslogtreecommitdiff
path: root/plugins/auth_internal
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-01 23:07:20 +0300
committerAndrew Dolgov <[email protected]>2021-03-01 23:07:20 +0300
commit031ee47a3e3de0d86fd5f951af3a136d85b387c5 (patch)
treea89b01d53a226541d7219c9610da5441b9311277 /plugins/auth_internal
parentb150e46a526a18f055ba0b67671c7704f45c0f8f (diff)
don't try to pass string literal NOW() to ORM as a timestamp
Diffstat (limited to 'plugins/auth_internal')
-rw-r--r--plugins/auth_internal/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index 70f071057..bc0527e7f 100644
--- a/plugins/auth_internal/init.php
+++ b/plugins/auth_internal/init.php
@@ -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