차단 처리

This commit is contained in:
2023-12-28 17:38:20 +09:00
parent d5708a964f
commit 6ca3905fed

View File

@ -586,17 +586,8 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
"expirein": sh.sessionTTL.Seconds(),
})
} else {
}
authinfo, _ := sh.sessionProvider.Query(sk)
if _, ok := sh.bl.get(authinfo.Account); ok {
w.WriteHeader(http.StatusUnauthorized)
return
}
return
}