mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-14 18:33: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 != nil {
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
resErr = &util.JSONResponse{
|
resErr = &util.JSONResponse{
|
||||||
Code: 403,
|
Code: 401,
|
||||||
JSON: jsonerror.Forbidden("Invalid access token"),
|
JSON: jsonerror.Forbidden("Invalid access token"),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue