From d23bce7d9109dd8c8697c19db7116dd876ab3de5 Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Wed, 7 Aug 2024 11:18:43 +0400 Subject: [PATCH] fix: update OtpLength type to uint Co-authored-by: Han Qiao --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 465677a16..3877f32f6 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -304,7 +304,7 @@ type ( phoneFactorTypeConfiguration struct { factorTypeConfiguration - OtpLength int `toml:"otp_length"` + OtpLength uint `toml:"otp_length"` Template string `toml:"template"` MaxFrequency time.Duration `toml:"max_frequency"` }