feat: fix countryCode param bug in MFA login (#3384)

This commit is contained in:
DacongDA 2024-11-29 21:46:06 +08:00 committed by GitHub
parent 79dbdab6c9
commit d522247552
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")