From d522247552f2831f632c3b44653b8b251eb34fc4 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Fri, 29 Nov 2024 21:46:06 +0800 Subject: [PATCH] feat: fix countryCode param bug in MFA login (#3384) --- controllers/mfa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/mfa.go b/controllers/mfa.go index 68865a8a..4711b08b 100644 --- a/controllers/mfa.go +++ b/controllers/mfa.go @@ -84,7 +84,7 @@ func (c *ApiController) MfaSetupVerify() { passcode := c.Ctx.Request.Form.Get("passcode") secret := c.Ctx.Request.Form.Get("secret") dest := c.Ctx.Request.Form.Get("dest") - countryCode := c.Ctx.Request.Form.Get("secret") + countryCode := c.Ctx.Request.Form.Get("countryCode") if mfaType == "" || passcode == "" { c.ResponseError("missing auth type or passcode")