From f5841f8ebec338fe2af87a2e50d105560b9994ba Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 26 Nov 2024 11:52:43 -0500 Subject: dont hardcode getenv --- src/web/helpers/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/helpers/auth.php') diff --git a/src/web/helpers/auth.php b/src/web/helpers/auth.php index 4d7f184..d6c4573 100644 --- a/src/web/helpers/auth.php +++ b/src/web/helpers/auth.php @@ -77,7 +77,7 @@ class AuthHelper { * Gets the current authed session */ public function get_session(): ?Session { - $cookie_name = getenv("COOKIE_NAME"); + $cookie_name = CONFIG["COOKIE_NAME"]; if(!isset($_COOKIE[$cookie_name])) { return NULL; } -- cgit v1.2.3-freya