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

I want to extend the refresh time of verification code to 1 hour or more. What can I do instead? #208

Open
QTNiCheng opened this issue Feb 4, 2022 · 6 comments

Comments

@QTNiCheng
Copy link

Now the verification code is 30 seconds by default. I have queried a lot of data and have not found a way to modify the refresh time.

@ThomasHabets
Copy link
Collaborator

1h or more? Why? Maybe try HOTP?

Sure, I would accept well-written PRs to implement this. But do you even have an OTP generator that supports this?

@QTNiCheng
Copy link
Author

Thank you for your reply.
I have encountered some scenes, which is not particularly high for security requirements. I can allow 1 hour to refresh a verification code, or for a longer time. I think there will be some people who have encountered similar situations.
I found a OTP for PYTHON. It seems that you can modify the trigger time, but I have not tested it.
https://github.com/grahammitchell/google-authenticator

@google google deleted a comment from QTNiCheng Feb 4, 2022
@LoganDark
Copy link

do you even have an OTP generator that supports this?

KeePassXC supports configuring TOTP parameters, including changing the algorithm (SHA-1, SHA-256 or SHA-512), time step, and code size (how many digits).

@akerl
Copy link

akerl commented May 2, 2022

It’s worth noting that if you extend the time, you also reduce how frequently you can auth (assuming you disallow reuse, which you should do). If the time step is 1h, you can only log in once an hour.

@LoganDark
Copy link

LoganDark commented May 2, 2022

Couldn't be me, I can't get sshd/PAM configured to use google-authenticator properly anyway. :P

@ShadowOfHeaven-Me
Copy link

I agree that the time extension feature would be very handy, alongside the possibility to reuse the code. Adding some kind of warning when setting it high might be for the best. Otherwise, for different situations it's best to have more customizability

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

5 participants