fixed #1
This commit is contained in:
@@ -268,6 +268,8 @@ func UserInfo(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if err != nil {
|
||||
log.Println("GET [api/userinfo] " + r.RemoteAddr + ": " + err.Error())
|
||||
http.Error(w, "Unauthorized: Invalid or expired token", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
idParam = claims.UserID
|
||||
|
||||
Reference in New Issue
Block a user