fix(auth): 注册唯一性检查识别 Gmail 邮箱别名

合并 #681:注册唯一性检查识别 Gmail 邮箱别名
This commit is contained in:
Catlaxy AI authored and GitHub committed 2026-10-06 09:23:04 +08:00
1 parent a71e03b131
commit 19841cb9c5
12 files changed
+316 -8

No files matched your search

+4 -1
View File
@@ -210,7 +210,10 @@ func (s *Service) contactAvailable(email, phone, ownID string) error {
if email == "" {
continue
}
user, err = s.repo.UserByEmail(email)
if err := s.repo.CheckEmailAvailable(email, ownID); err != nil {
return err
}
continue
} else {
if phone == "" {
continue