From 7f00437a5279c97fe36cc1ba08b89c73b0fa072d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A7=E9=98=B3?= Date: Wed, 2 Aug 2023 11:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=94=A8=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E7=99=BB=E9=99=86=20=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=94=A8=E9=AA=8C=E8=AF=81=E7=A0=81=E6=89=BE=E5=9B=9E=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=97=B6=E5=80=99=E9=AA=8C=E8=AF=81=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/chat/login.go | 2 +- internal/rpc/chat/password.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/chat/login.go b/internal/rpc/chat/login.go index ba78a1587..2e5cc8471 100644 --- a/internal/rpc/chat/login.go +++ b/internal/rpc/chat/login.go @@ -367,7 +367,7 @@ func (o *chatSvr) Login(ctx context.Context, req *chat.LoginReq) (*chat.LoginRes } var verifyCodeID *uint if req.Password == "" { - id, err := o.verifyCode(ctx, o.verifyCodeJoin(req.VerifyCode, req.PhoneNumber), req.VerifyCode) + id, err := o.verifyCode(ctx, o.verifyCodeJoin(req.AreaCode, req.PhoneNumber), req.VerifyCode) if err != nil { return nil, err } diff --git a/internal/rpc/chat/password.go b/internal/rpc/chat/password.go index 99152f47a..5235e0626 100644 --- a/internal/rpc/chat/password.go +++ b/internal/rpc/chat/password.go @@ -31,7 +31,7 @@ func (o *chatSvr) ResetPassword(ctx context.Context, req *chat.ResetPasswordReq) if req.Password == "" { return nil, errs.ErrArgs.Wrap("password must be set") } - verifyCodeID, err := o.verifyCode(ctx, o.verifyCodeJoin(req.VerifyCode, req.PhoneNumber), req.VerifyCode) + verifyCodeID, err := o.verifyCode(ctx, o.verifyCodeJoin(req.AreaCode, req.PhoneNumber), req.VerifyCode) if err != nil { return nil, err }