Respond with 401 for incorrect token

This commit is contained in:
Erik Johnston 2017-10-05 15:47:07 +01:00
parent bcf58fad84
commit 41e11dad5d

View file

@ -62,7 +62,7 @@ func VerifyAccessToken(req *http.Request, deviceDB DeviceDatabase) (device *auth
if err != nil {
if err == sql.ErrNoRows {
resErr = &util.JSONResponse{
Code: 403,
Code: 401,
JSON: jsonerror.Forbidden("Invalid access token"),
}
} else {