mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: fix countryCode param bug in MFA login (#3384)
This commit is contained in:
parent
79dbdab6c9
commit
d522247552
@ -84,7 +84,7 @@ func (c *ApiController) MfaSetupVerify() {
|
|||||||
passcode := c.Ctx.Request.Form.Get("passcode")
|
passcode := c.Ctx.Request.Form.Get("passcode")
|
||||||
secret := c.Ctx.Request.Form.Get("secret")
|
secret := c.Ctx.Request.Form.Get("secret")
|
||||||
dest := c.Ctx.Request.Form.Get("dest")
|
dest := c.Ctx.Request.Form.Get("dest")
|
||||||
countryCode := c.Ctx.Request.Form.Get("secret")
|
countryCode := c.Ctx.Request.Form.Get("countryCode")
|
||||||
|
|
||||||
if mfaType == "" || passcode == "" {
|
if mfaType == "" || passcode == "" {
|
||||||
c.ResponseError("missing auth type or passcode")
|
c.ResponseError("missing auth type or passcode")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user