Add compatibility for totp codes with different intervals by gergesh · Pull Request #7 · rsc/2fa · GitHub
Skip to content

Add compatibility for totp codes with different intervals#7

Open
gergesh wants to merge 5 commits into
rsc:masterfrom
gergesh:master
Open

Add compatibility for totp codes with different intervals#7
gergesh wants to merge 5 commits into
rsc:masterfrom
gergesh:master

Conversation

@gergesh

@gergesh gergesh commented Feb 9, 2018

Copy link
Copy Markdown

From my testing, everything seems alright but it could be that I haven't tested everything.
The downside is that the ~/.2fa file format has changed a bit, so you'll have to (very slightly) modify it to migrate to the new version.

@googlebot

Copy link
Copy Markdown
Collaborator

@gergesh

gergesh commented Feb 9, 2018

Copy link
Copy Markdown
Author

Signed.

@googlebot

Copy link
Copy Markdown
Collaborator

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Feb 9, 2018
Comment thread main.go
raw []byte
digits int
offset int // offset of counter
interval int // interval of generation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't gofmted.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@xplshn

xplshn commented Jun 20, 2025

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants