차단 처리
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user