This commit is contained in:
suyl
2021-07-15 14:06:51 +08:00
parent 71419171c8
commit c4ac39eea8
2 changed files with 10 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/base64"
"errors"
"fmt"
"regexp"
"strings"
"time"
@@ -213,9 +212,9 @@ func SendVerifyCode(authToken, captchaID, captchaValue, authID string) (verfifyC
if handler := authers[authType]; handler == nil {
err = ErrIllegalAuthType
} else {
if user, _ := dao.GetUserByID(dao.GetDB(), "mobile", authID); user != nil {
return "", authInfo, fmt.Errorf("该用户已存在,请勿重复注册!")
}
//if user, _ := dao.GetUserByID(dao.GetDB(), "mobile", authID); user != nil {
// return "", authInfo, fmt.Errorf("该用户已存在,请勿重复注册!")
//}
verfifyCode, err = handler.SendVerifyCode(authID)
}
}