1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

add a query helper on x/sqlx sub-package and fix the example for basicauth

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-08 19:45:25 +02:00
parent ad80a14b8f
commit 5a7485124c
5 changed files with 75 additions and 16 deletions

View File

@@ -493,6 +493,12 @@ func (b *BasicAuth) logout(ctx *context.Context) {
b.mu.Lock()
delete(b.credentials, fullUser)
b.mu.Unlock()
if b.opts.MaxTries > 0 {
b.setCurrentTries(ctx, 0)
}
ctx.StatusCode(http.StatusUnauthorized)
}
}