Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
7f227ab3fb Fix signup parsing error when verificationCodeTimeout is empty
When verificationCodeTimeout config is missing or empty, GetConfigInt64
returns an error "parsing '': invalid syntax". This error was propagating
to the signup flow, causing signup with Email OTP to fail.

This fix provides a default value of 10 minutes (matching the value in
app.conf) when the config is missing, following the same pattern used in
timeout_filter.go.

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
2026-01-31 14:40:52 +00:00
copilot-swe-agent[bot]
69a310298e Initial plan 2026-01-31 14:35:52 +00:00

View File

@@ -281,7 +281,7 @@ func CheckVerificationCode(dest string, code string, lang string) (*VerifyResult
timeoutInMinutes, err := conf.GetConfigInt64("verificationCodeTimeout")
if err != nil {
return nil, err
timeoutInMinutes = 10
}
now := time.Now().Unix()