noauth가 아닐때 type 없으면 로그인 실패

This commit is contained in:
2023-10-20 11:27:41 +09:00
parent 95a7972835
commit bc58249483

View File

@ -606,8 +606,13 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
authtype = newType authtype = newType
uid = newId uid = newId
} }
} else { } else if *devflag {
email = fmt.Sprintf("%s@guest.flag", uid) email = fmt.Sprintf("%s@guest.flag", uid)
} else {
// authtype이 없으면 입장 불가
logger.Error("authorize failed. 'type' query parameter is missing")
w.WriteHeader(http.StatusBadRequest)
return
} }
} else { } else {
email = fmt.Sprintf("%s@noauth.flag", uid) email = fmt.Sprintf("%s@noauth.flag", uid)