diff --git a/internal/rpc/chat/login.go b/internal/rpc/chat/login.go index 327eec32..1d1b2fcd 100644 --- a/internal/rpc/chat/login.go +++ b/internal/rpc/chat/login.go @@ -96,7 +96,7 @@ func (o *chatSvr) SendVerifyCode(ctx context.Context, req *chat.SendVerifyCodeRe switch o.conf.Mail.Use { case constant.VerifySuperCode: return &chat.SendVerifyCodeResp{}, nil // super code - case constant.Email: + case constant.VerifyMail: default: return nil, errs.ErrInternalServer.WrapMsg("email verification code is not enabled") }