mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Read https://github.com/kataras/iris/tree/master/HISTORY.md
This commit is contained in:
@@ -143,7 +143,7 @@ func (b *basicAuthMiddleware) Serve(ctx *iris.Context) {
|
||||
auth.logged = true
|
||||
}
|
||||
|
||||
if time.Now().Before(auth.expires) {
|
||||
if time.Now().After(auth.expires) {
|
||||
b.askForCredentials(ctx) // ask for authentication again
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user