aboutsummaryrefslogtreecommitdiff
path: root/utils/auth/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/auth/auth.go')
-rw-r--r--utils/auth/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/auth/auth.go b/utils/auth/auth.go
index b3d322c..976d903 100644
--- a/utils/auth/auth.go
+++ b/utils/auth/auth.go
@@ -13,7 +13,7 @@ func IsAuthenticated(context *fiber.Ctx) bool {
return false
}
- return activeSession.Get(SESSION_AUTHENTICATED_KEY) != nil
+ return activeSession.Get(AuthenticatedKey) != nil
}
func RequireAuthentication(handler fiber.Handler) fiber.Handler {
@@ -32,7 +32,7 @@ func Authenticate(context *fiber.Ctx) error {
return sessionError
}
- activeSession.Set(SESSION_AUTHENTICATED_KEY, true)
+ activeSession.Set(AuthenticatedKey, true)
return activeSession.Save()
}