Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capturing username of failed login attempts #94

Closed
IndigoJay opened this issue Oct 12, 2023 · 1 comment
Closed

Capturing username of failed login attempts #94

IndigoJay opened this issue Oct 12, 2023 · 1 comment

Comments

@IndigoJay
Copy link

I would like to write code that blocks a user after 3 failed login attempts.

Currently, it seems like failed login attempts return the username None.

@mkhorasani
Copy link
Owner

mkhorasani commented Jan 22, 2024

Hi @IndigoJay, this feature has been implemented in release v0.3.1. You can retrieve the number of failed login attempts a user has made by accessing st.session_state['failed_login_attempts'] which returns a dictionary with the username as key and the number of failed attempts as the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants