From bc582494837ba3218ff77af29805bd55304ac325 Mon Sep 17 00:00:00 2001 From: mountain Date: Fri, 20 Oct 2023 11:27:41 +0900 Subject: [PATCH] =?UTF-8?q?noauth=EA=B0=80=20=EC=95=84=EB=8B=90=EB=95=8C?= =?UTF-8?q?=20type=20=EC=97=86=EC=9C=BC=EB=A9=B4=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EC=8B=A4=ED=8C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/service.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/service.go b/core/service.go index 40cc28c..4668878 100644 --- a/core/service.go +++ b/core/service.go @@ -606,8 +606,13 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request) authtype = newType uid = newId } - } else { + } else if *devflag { email = fmt.Sprintf("%s@guest.flag", uid) + } else { + // authtype이 없으면 입장 불가 + logger.Error("authorize failed. 'type' query parameter is missing") + w.WriteHeader(http.StatusBadRequest) + return } } else { email = fmt.Sprintf("%s@noauth.flag", uid)