This commit is contained in:
wangchuxiao
2022-06-30 19:11:44 +08:00
parent 53b0d13342
commit 7823306045
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func SetPassword(c *gin.Context) {
params.Nickname = account
}
if params.VerificationCode != config.Config.Demo.SuperCode {
accountKey := account + "_" + constant.VerificationCodeForRegisterSuffix
accountKey := params.AreaCode + account + "_" + constant.VerificationCodeForRegisterSuffix
v, err := db.DB.GetAccountCode(accountKey)
if err != nil || v != params.VerificationCode {
log.NewError(params.OperationID, "password Verification code error", account, params.VerificationCode)