hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Add configuration option for maximum number of fingerprint retries

Open coldiron opened this issue 4 months ago • 2 comments

Satisfies #792

Adds a new configuration option auth:fingerprint:max_retries with a default of 3, replacing the existing hard-coded value of 3 fingerprint retires.

coldiron avatar Jul 27 '25 05:07 coldiron

Works great, thanks for this change :)))

Also, is there any reason against making something like -1 act as "infinite retries"? I don't think it would be a security hazard, as I don't think brute-forcing fingerprints is a thing anyway

I just noticed that with auth:fingerprint:max_retries = 3 (or any n) I am able to make the authentication fail 4 times (or any n+1). Is this intended? I get why this is (it is trying again 3 times, after the 1st fail) but isn't this unintuitive? I believe it would be better and clearer to rename the option to max_attempts and make it act as a "how many tries the user has" thing.

alba4k avatar Aug 05 '25 21:08 alba4k

Also, is there any reason against making something like -1 act as "infinite retries"? I don't think it would be a security hazard, as I don't think brute-forcing fingerprints is a thing anyway

With this PR 0 should work and -1 too i think?

I just noticed that with auth:fingerprint:max_retries = 3 (or any n) I am able to make the authentication fail 4 times (or any n+1). Is this intended? I get why this is (it is trying again 3 times, after the 1st fail) but isn't this unintuitive? I believe it would be better and clearer to rename the option to max_attempts and make it act as a "how many tries the user has" thing.

@coldiron I think @alba4k is correct on that. Wanna move to max_attempts?

Also let me know if I should finish this up with the changes and wiki MR, or if you want to do it yourself.

PointerDilemma avatar Aug 28 '25 06:08 PointerDilemma