Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
修复用验证码登陆 以及用验证码找回密码时候 显示过期问题
  • Loading branch information
ouyangdage authored Aug 2, 2023
1 parent 891627a commit 4d21aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/rpc/chat/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/rpc/chat/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4d21aa2

Please sign in to comment.