summaryrefslogtreecommitdiff
path: root/src/web/helpers/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/helpers/auth.php')
-rw-r--r--src/web/helpers/auth.php2
1 files changed, 1 insertions, 1 deletions
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;
}