Browse Source

fix class missing on login

Andrew Dolgov 2 years ago
parent
commit
93c413fd87
1 changed files with 2 additions and 0 deletions
  1. 2 0
      login.php

+ 2 - 0
login.php

@@ -7,6 +7,8 @@
 		$user = SQLite3::escapeString(trim(mb_strtolower($_REQUEST["user"])));
 		$password = SQLite3::escapeString('SHA256:' . hash('sha256', "$user:" . trim($_REQUEST["password"])));
 
+		require_once "db.php";
+
 		$dbh = Db::get();
 
 		$res = $dbh->query("SELECT id FROM epube_users WHERE user = '$user' AND pass = '$password'");