mirror of
https://github.com/1f349/twofactor.git
synced 2024-12-22 07:24:12 +00:00
Comment on constant - travis deps
This commit is contained in:
parent
00e19bbd7f
commit
2128a14b41
@ -3,5 +3,8 @@ language: go
|
|||||||
go:
|
go:
|
||||||
- 1.4
|
- 1.4
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go get "code.google.com/p/rsc/qr"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test -v ./...
|
- go test -v ./...
|
2
totp.go
2
totp.go
@ -23,7 +23,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
BACKOFF_MINUTES = 5 // this is the time to wait before verifying another token
|
BACKOFF_MINUTES = 5 // this is the time to wait before verifying another token
|
||||||
MAX_FAILURES = 3 // total amount of failures, after that the user needs to wait for the backoff time
|
MAX_FAILURES = 3 // total amount of failures, after that the user needs to wait for the backoff time
|
||||||
COUNTER_SIZE = 8
|
COUNTER_SIZE = 8 // this is defined in the RFC 4226
|
||||||
)
|
)
|
||||||
|
|
||||||
type totp struct {
|
type totp struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user