mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
verrify
This commit is contained in:
parent
55d7c6e672
commit
aad27f40cf
@ -49,9 +49,9 @@ func Verify(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
accountKey := account + "_" + constant.VerificationCodeForRegisterSuffix
|
accountKey := account + "_" + constant.VerificationCodeForRegisterSuffix
|
||||||
code, err := db.DB.GetAccountCode(accountKey)
|
code, err := db.DB.GetAccountCode(accountKey)
|
||||||
log.NewInfo(params.OperationID, "redis phone number and verificating Code", account, code)
|
log.NewInfo(params.OperationID, "redis phone number and verificating Code", accountKey, code, params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(params.OperationID, "Verification code expired", account, "err", err.Error())
|
log.NewError(params.OperationID, "Verification code expired", accountKey, "err", err.Error())
|
||||||
data := make(map[string]interface{})
|
data := make(map[string]interface{})
|
||||||
data["account"] = account
|
data["account"] = account
|
||||||
c.JSON(http.StatusOK, gin.H{"errCode": constant.CodeInvalidOrExpired, "errMsg": "Verification code expired!", "data": data})
|
c.JSON(http.StatusOK, gin.H{"errCode": constant.CodeInvalidOrExpired, "errMsg": "Verification code expired!", "data": data})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user