8
Gopkg.lock
generated
8
Gopkg.lock
generated
@@ -1,6 +1,12 @@
|
|||||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
||||||
|
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
branch = "master"
|
||||||
|
name = "github.com/benbjohnson/clock"
|
||||||
|
packages = ["."]
|
||||||
|
revision = "7dc76406b6d3c05b5f71a86293cbcf3c4ea03b19"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "rsc.io/qr"
|
name = "rsc.io/qr"
|
||||||
@@ -14,6 +20,6 @@
|
|||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "b705d306da5a78e76b7ff289744770eef56328a4f0d1c615c1a233d056283651"
|
inputs-digest = "6f47334a8fcf2bb48e739e6181089e02bce6cc4d68888be311df3827db96f8ae"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
|||||||
@@ -32,3 +32,7 @@
|
|||||||
[prune]
|
[prune]
|
||||||
go-tests = true
|
go-tests = true
|
||||||
unused-packages = true
|
unused-packages = true
|
||||||
|
|
||||||
|
[[constraint]]
|
||||||
|
branch = "master"
|
||||||
|
name = "github.com/benbjohnson/clock"
|
||||||
|
|||||||
5
totp.go
5
totp.go
@@ -11,9 +11,12 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
"github.com/benbjohnson/clock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var time clock.Clock
|
||||||
|
|
||||||
// TOTP represents an RFC 6238 Time-based One-Time Password instance.
|
// TOTP represents an RFC 6238 Time-based One-Time Password instance.
|
||||||
type TOTP struct {
|
type TOTP struct {
|
||||||
*OATH
|
*OATH
|
||||||
|
|||||||
Reference in New Issue
Block a user