Skip to content

Commit

Permalink
fix: phone already register code
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Sep 19, 2023
1 parent 9bc72de commit 2ccfe25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/chat/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (o *chatSvr) SendVerifyCode(ctx context.Context, req *chat.SendVerifyCodeRe
}
_, err := o.Database.TakeAttributeByPhone(ctx, req.AreaCode, req.PhoneNumber)
if err == nil {
return nil, errs.ErrArgs.Wrap("phone already register")
return nil, eerrs.ErrPhoneAlreadyRegister.Wrap("phone already register")
} else if !o.Database.IsNotFound(err) {
return nil, err
}
Expand Down

0 comments on commit 2ccfe25

Please sign in to comment.