updated dependencies
This commit is contained in:
parent
1410847c03
commit
cff4b58f6d
446 changed files with 57869 additions and 27621 deletions
3
vendor/github.com/pquerna/otp/totp/totp.go
generated
vendored
3
vendor/github.com/pquerna/otp/totp/totp.go
generated
vendored
|
|
@ -20,6 +20,7 @@ package totp
|
|||
import (
|
||||
"github.com/pquerna/otp"
|
||||
"github.com/pquerna/otp/hotp"
|
||||
"github.com/pquerna/otp/internal"
|
||||
"io"
|
||||
|
||||
"crypto/rand"
|
||||
|
|
@ -199,7 +200,7 @@ func Generate(opts GenerateOpts) (*otp.Key, error) {
|
|||
Scheme: "otpauth",
|
||||
Host: "totp",
|
||||
Path: "/" + opts.Issuer + ":" + opts.AccountName,
|
||||
RawQuery: v.Encode(),
|
||||
RawQuery: internal.EncodeQuery(v),
|
||||
}
|
||||
|
||||
return otp.NewKeyFromURL(u.String())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue