From 7307b3c8080ff65ba561e6577c1ed7b7b42be234 Mon Sep 17 00:00:00 2001 From: daru Date: Fri, 15 Apr 2022 01:38:32 +0200 Subject: [PATCH] a --- ober.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ober.go b/ober.go index 4bc4ac6..058bb82 100644 --- a/ober.go +++ b/ober.go @@ -186,13 +186,13 @@ func WatchPost(ctx *fasthttp.RequestCtx) { return } username := fmt.Sprintf("%s", ctx.UserValue("user")) - if !authenticate(username, string(auth)) { + if !GheddoAuth(username, string(auth)) { ctx.SetStatusCode(fasthttp.StatusUnauthorized) return } } -func authenticate(username, auth string) bool { +func GheddoAuth(username, auth string) bool { user, err := ReadUser(username) if err != nil { return false