fix(auth): 注册唯一性检查识别 Gmail 邮箱别名
合并 #681:注册唯一性检查识别 Gmail 邮箱别名
This commit is contained in:
1 parent
a71e03b131
commit
19841cb9c5
12 files changed
+316
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user