summaryrefslogtreecommitdiff
path: root/src/web/helpers/auth.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-11-26 11:52:43 -0500
committerFreya Murphy <freya@freyacat.org>2024-11-26 11:52:43 -0500
commitf5841f8ebec338fe2af87a2e50d105560b9994ba (patch)
tree94557f06567179a86b2264e7cd16951bc4de1c1f /src/web/helpers/auth.php
parentnew style, add redirect support (diff)
downloadldap_forwardauth-f5841f8ebec338fe2af87a2e50d105560b9994ba.tar.gz
ldap_forwardauth-f5841f8ebec338fe2af87a2e50d105560b9994ba.tar.bz2
ldap_forwardauth-f5841f8ebec338fe2af87a2e50d105560b9994ba.zip
dont hardcode getenv
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;
}