Skip to content

Commit 47e6d4e

Browse files
authored
fix: verify mail constant (#660)
1 parent 6900ede commit 47e6d4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/rpc/chat/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (o *chatSvr) SendVerifyCode(ctx context.Context, req *chat.SendVerifyCodeRe
9696
switch o.conf.Mail.Use {
9797
case constant.VerifySuperCode:
9898
return &chat.SendVerifyCodeResp{}, nil // super code
99-
case constant.Email:
99+
case constant.VerifyMail:
100100
default:
101101
return nil, errs.ErrInternalServer.WrapMsg("email verification code is not enabled")
102102
}

0 commit comments

Comments
 (0)