forked from mirrors/pronouns.cc
oops 2
This commit is contained in:
parent
85754a9208
commit
020ac15a00
1 changed files with 3 additions and 3 deletions
|
@ -19,10 +19,10 @@ func (s *Server) maybeAuth(next http.Handler) http.Handler {
|
||||||
|
|
||||||
claims, err := s.Auth.Claims(token)
|
claims, err := s.Auth.Claims(token)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
render.Status(r, errCodeStatuses[ErrForbidden])
|
render.Status(r, errCodeStatuses[ErrInvalidToken])
|
||||||
render.JSON(w, r, APIError{
|
render.JSON(w, r, APIError{
|
||||||
Code: ErrForbidden,
|
Code: ErrInvalidToken,
|
||||||
Message: errCodeMessages[ErrForbidden],
|
Message: errCodeMessages[ErrInvalidToken],
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue