Skip to content

Commit

Permalink
use randx runes defined in ory/x
Browse files Browse the repository at this point in the history
  • Loading branch information
supercairos committed Nov 29, 2023
1 parent bc70138 commit c4b608a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/rfc8628/strategy_hmacsha.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type DefaultDeviceStrategy struct {
}

func (h *DefaultDeviceStrategy) GenerateUserCode(ctx context.Context) (token string, signature string, err error) {
seq, err := randx.RuneSequence(8, []rune("BCDFGHJKLMNPQRSTVWXZ"))
seq, err := randx.RuneSequence(8, []rune(randx.AlphaUpperNoVowels))

Check failure on line 28 in handler/rfc8628/strategy_hmacsha.go

View workflow job for this annotation

GitHub Actions / test

undefined: randx.AlphaUpperNoVowels

Check failure on line 28 in handler/rfc8628/strategy_hmacsha.go

View workflow job for this annotation

GitHub Actions / test

undefined: randx.AlphaUpperNoVowels
if err != nil {
return "", "", err
}
Expand Down

0 comments on commit c4b608a

Please sign in to comment.