mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Respond with 401 for incorrect token
This commit is contained in:
parent
bcf58fad84
commit
41e11dad5d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue