various repo admin bits
[gwvp.git] / gwvplib / gwvpauth.php
index ad42b2b..5056c06 100644 (file)
@@ -122,9 +122,11 @@ function gwvp_AuthHandleLogin()
                gwvp_SendMessage("error", "Login Failed");
                header("Location: $BASE_URL");
        } else {
+               $details = gwvp_getUser($user);
                $_SESSION["isloggedin"] = true;
                $_SESSION["username"] = "$user";
                $_SESSION["fullname"] = $details["fullname"];
+               $_SESSION["id"] = $details["id"];
                if(gwvp_IsUserAdmin($details["email"])) {
                        $_SESSION["usertype"] = "admin";
                } else {