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