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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user