1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

improve Context.Proceed

Now this is possible: ok := (Handler1) && ctx.Proceed(Handler2)) || ctx.Proceed(Handler3)
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-06-15 00:36:28 +03:00
parent cc181a038c
commit 574db973d0
4 changed files with 125 additions and 27 deletions

View File

@@ -443,6 +443,7 @@ func (b *BasicAuth) serveHTTP(ctx *context.Context) {
user = &context.SimpleUser{
Authorization: authorizationType,
AuthorizedAt: authorizedAt,
ID: username,
Username: username,
Password: password,
}