Skip to content

Commit

Permalink
Some delay for failed auth in basic auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Feb 8, 2023
1 parent 46cb4e1 commit 1f4f92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ajenti-core/aj/gate/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def handle(self, http_context):
initial_identity=username
)
session.set_cookie(http_context)
else:
gevent.sleep(3)

if session:
session.touch()
Expand Down

0 comments on commit 1f4f92c

Please sign in to comment.