mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 20:07:04 +00:00
Add Context.SetUser and Context.User methods
relative to: https://github.com/iris-contrib/middleware/issues/63
This commit is contained in:
@@ -43,8 +43,9 @@ type Config struct {
|
||||
// Defaults to nil.
|
||||
OnAsk context.Handler
|
||||
|
||||
// DisableLogoutFunc disables the registration of the custom basicauth Context.Logout.
|
||||
DisableLogoutFunc bool
|
||||
// DisableContextUser disables the registration of the custom basicauth Context.Logout
|
||||
// and the User.
|
||||
DisableContextUser bool
|
||||
}
|
||||
|
||||
// DefaultConfig returns the default configs for the BasicAuth middleware
|
||||
|
||||
Reference in New Issue
Block a user