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

Add exponential backoff to retry interval if no passphrase entered. #142

Merged
merged 1 commit into from
May 17, 2024

Conversation

BenWestgate
Copy link
Owner

Unfortunately there is a maximum timeout for gnome3-pinentry and the lockscreen will still be spammed.

So the interval before prompting for the passphrase again will have to increase.

This allows a cheat for the user to just not enter a passphrase, eventually giving them a longer wait than entering the correct one. Honor system seems fine here.

They both grow at the same rate, so entering the passphrase is strictly 15x less prompts since it starts at 30 seconds rather than 2.

@BenWestgate BenWestgate requested a review from epiccurious May 17, 2024 00:32
@BenWestgate BenWestgate self-assigned this May 17, 2024
@BenWestgate BenWestgate merged commit 1f80e4f into master May 17, 2024
3 of 4 checks passed
@BenWestgate BenWestgate deleted the reduce-lockscreen-spam branch May 17, 2024 00:36
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

Successfully merging this pull request may close these issues.

1 participant