From 0872556c1af2b1be256ff808d585e938158df462 Mon Sep 17 00:00:00 2001 From: Stavros Date: Fri, 7 Feb 2025 17:46:13 +0200 Subject: [PATCH] chore: add to do in basic auth --- internal/hooks/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hooks/hooks.go b/internal/hooks/hooks.go index 642b411..a52f3fe 100644 --- a/internal/hooks/hooks.go +++ b/internal/hooks/hooks.go @@ -23,7 +23,7 @@ type Hooks struct { func (hooks *Hooks) UseUserContext(c *gin.Context) types.UserContext { cookie := hooks.Auth.GetSessionCookie(c) - basic := hooks.Auth.GetBasicAuth(c) + basic := hooks.Auth.GetBasicAuth(c) // TODO: return json instead of redirect when basic auth if basic.Username != "" { log.Debug().Msg("Got basic auth")