diff options
author | Andrew Dolgov <[email protected]> | 2024-02-18 12:34:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-02-18 12:34:56 +0300 |
commit | eb52a7da8e2cafa1892d3f8810a69435b7a9b854 (patch) | |
tree | 286a54c4ea0d153fb31ce69edb0b8233e8046934 /login.php | |
parent | 19b3e7fff80d430a9f287138f9cf84a1faa681fd (diff) |
add pgsql support
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ $pass_hash = 'SHA256:' . hash('sha256', "$username:" . trim($_REQUEST["password"])); $user = ORM::for_table('epube_users') - ->where('user', $username) + ->where('username', $username) ->where('pass', $pass_hash) ->find_one(); @@ -62,7 +62,7 @@ if ($username) { $user = ORM::for_table('epube_users') - ->where('user', $username) + ->where('username', $username) ->find_one(); if ($user) { |