[이민권] 계정 삭제

- 버그 수정
This commit is contained in:
2024-01-25 16:18:27 +09:00
parent 28dc84769d
commit cbcae00c77

View File

@ -887,6 +887,13 @@ func (sh *serviceDescription) delacc(w http.ResponseWriter, r *http.Request) {
return
}
sType, sId, err := sh.getProviderInfo(sType, sId)
if err != nil {
logger.Error("delacc failed. getProviderInfo err :", err)
w.WriteHeader(http.StatusBadRequest)
return
}
if authInfo.Uid != sId || authInfo.Platform != sType {
logger.Println("delacc failed. session key is not correct :", *authInfo, queryvals)
w.WriteHeader(http.StatusBadRequest)