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 /include | |
parent | 19b3e7fff80d430a9f287138f9cf84a1faa681fd (diff) |
add pgsql support
Diffstat (limited to 'include')
-rw-r--r-- | include/sessions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php index bf2cec0..8fbab1d 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -30,7 +30,7 @@ if (!empty($_SESSION["owner"])) { $user = ORM::for_table('epube_users') - ->where('user', $_SESSION['owner']) + ->where('username', $_SESSION['owner']) ->find_one(); if ($user && sha1($user->pass) == $_SESSION['pass_hash']) { |