小修正,如果已存在user,拿已有user资讯取代掉新user资讯来寄送激活码
This commit is contained in:
parent
6f6e184955
commit
633fc30fcd
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ func (service *UserRegisterService) Register(c *gin.Context) serializer.Response
|
|||
expectedUser, err := model.GetUserByEmail(service.UserName)
|
||||
if expectedUser.Status == model.NotActivicated {
|
||||
userNotActivated = true
|
||||
user = expectedUser
|
||||
} else {
|
||||
return serializer.DBErr("此邮箱已被使用", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue