1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 11:05:14 +00:00

fix: errors in middleware do not abort the request

This commit is contained in:
Elias Schneider
2024-11-01 23:41:57 +01:00
parent 5b9f4d7326
commit 376d747616
3 changed files with 3 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ func (m *JwtAuthMiddleware) Add(adminOnly bool) gin.HandlerFunc {
return
} else {
c.Error(&common.NotSignedInError{})
c.Abort()
return
}
}