Fix the authenfication check.
[Project_webapp.git] / lib / utils.php
index bc5db9b6a6026aed5173b9083f60d3b89f7e651d..786c10e01cba770cdbd0b1e8bdcb69c4fbe32e5b 100644 (file)
@@ -53,7 +53,7 @@ function chk_password($email, $password)
 
 function chk_logged_in()
 {
-    if (isset($_SESSION['email'])) {
+    if (isset($_SESSION['email']) && isset($_SESSION['IP_address'])) {
         return true;
     } else {
         return false;