This commit is contained in:
eson 2023-08-29 15:11:19 +08:00
parent 56e38355d3
commit 57d95e0ebe

View File

@ -196,14 +196,13 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
if err == gorm.ErrRecordNotFound {
return nil
}
return err
}
return fmt.Errorf("the email had registered")
})
logcontent += "end"
if err != nil && err != gorm.ErrRecordNotFound {
return nil, err
}