diff --git a/go.mod b/go.mod index dc5065ef92..90a8fb78e7 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/muesli/crunchy v0.4.0 github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 github.com/noborus/ov v0.37.0 - github.com/pquerna/otp v1.4.0 + github.com/pquerna/otp v1.4.1-0.20241104074508-c95b6974670c github.com/schollz/closestmatch v0.0.0-20190308193919-1fbe626be92e github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e github.com/stretchr/testify v1.10.0 diff --git a/go.sum b/go.sum index 2e693d0484..624a35155c 100644 --- a/go.sum +++ b/go.sum @@ -149,8 +149,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pquerna/otp v1.4.0 h1:wZvl1TIVxKRThZIBiwOOHOGP/1+nZyWBil9Y2XNEDzg= -github.com/pquerna/otp v1.4.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= +github.com/pquerna/otp v1.4.1-0.20241104074508-c95b6974670c h1:13EElcQMk7NX3GLuq2eUkHPqrsJ2GNhwnAXqTjfE8II= +github.com/pquerna/otp v1.4.1-0.20241104074508-c95b6974670c/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= diff --git a/internal/action/otp.go b/internal/action/otp.go index 0bbc9207d1..d31825e71f 100644 --- a/internal/action/otp.go +++ b/internal/action/otp.go @@ -151,6 +151,7 @@ func (s *Action) otp(ctx context.Context, name, qrf string, clip, pw, recurse bo Skew: 1, Digits: two.Digits(), Algorithm: two.Algorithm(), + Encoder: two.Encoder(), }) if err != nil { return exit.Error(exit.Unknown, err, "Failed to compute OTP token for %s: %s", name, err) @@ -159,6 +160,7 @@ func (s *Action) otp(ctx context.Context, name, qrf string, clip, pw, recurse bo token, err = hotp.GenerateCodeCustom(two.Secret(), counter, hotp.ValidateOpts{ Digits: two.Digits(), Algorithm: two.Algorithm(), + Encoder: two.Encoder(), }) if err != nil { return exit.Error(exit.Unknown, err, "Failed to compute OTP token for %s: %s", name, err)