diff options
author | Andrew Dolgov <[email protected]> | 2021-03-04 08:32:19 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-04 08:32:19 +0300 |
commit | e19570f422df8e4ba0d604b517efad111def9a23 (patch) | |
tree | 34653a41630b6f1e32f547a961e5ebd50ac7a562 | |
parent | c0fb0a5ec04c064bb848534185b51c5d1b7bdaaf (diff) |
sessions: don't check schema version
-rw-r--r-- | include/sessions.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sessions.php b/include/sessions.php index 0fa8428ad..3a1a3b8cd 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -22,12 +22,13 @@ function validate_session() { if (\Config::get(\Config::SINGLE_USER_MODE)) return true; - if (isset($_SESSION["ref_schema_version"]) && $_SESSION["ref_schema_version"] != \Config::get_schema_version()) { + /* if (isset($_SESSION["ref_schema_version"]) && $_SESSION["ref_schema_version"] != \Config::get_schema_version()) { $_SESSION["login_error_msg"] = __("Session failed to validate (schema version changed)"); return false; - } - $pdo = \Db::pdo(); + } */ + + $pdo = \Db::pdo(); if (!empty($_SESSION["uid"])) { |