update error return
This commit is contained in:
parent
beabe82b50
commit
7927fe6483
@ -274,6 +274,7 @@ func ValidateToken(w http.ResponseWriter, r *http.Request) (*TokenDetails, error
|
||||
w.WriteHeader(http.StatusForbidden)
|
||||
w.Header().Add("Content-Type", "application/json")
|
||||
respond(w, response)
|
||||
return tk, errors.New("Missing auth token")
|
||||
}
|
||||
|
||||
splitted := strings.Split(bearToken, " ") //The token normally comes in format `Bearer {token-body}`, we check if the retrieved token matched this requirement
|
||||
|
Loading…
Reference in New Issue
Block a user