fixed totp and go mod
This commit is contained in:
parent
ec5a376733
commit
3a3140875e
297 changed files with 52714 additions and 15245 deletions
4
vendor/github.com/pquerna/otp/hotp/hotp.go
generated
vendored
4
vendor/github.com/pquerna/otp/hotp/hotp.go
generated
vendored
|
|
@ -167,6 +167,10 @@ func Generate(opts GenerateOpts) (*otp.Key, error) {
|
|||
opts.SecretSize = 10
|
||||
}
|
||||
|
||||
if opts.Digits == 0 {
|
||||
opts.Digits = otp.DigitsSix
|
||||
}
|
||||
|
||||
// otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example
|
||||
|
||||
v := url.Values{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue