차단 처리
This commit is contained in:
@ -586,17 +586,8 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
|
|||||||
"expirein": sh.sessionTTL.Seconds(),
|
"expirein": sh.sessionTTL.Seconds(),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
authinfo, _ := sh.sessionProvider.Query(sk)
|
|
||||||
if _, ok := sh.bl.get(authinfo.Account); ok {
|
|
||||||
w.WriteHeader(http.StatusUnauthorized)
|
w.WriteHeader(http.StatusUnauthorized)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user