noauth가 아닐때 type 없으면 로그인 실패
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user