Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] when chat not set sms and email, reset password use supercode, tiggered error #566

Closed
ouyangdage opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ouyangdage
Copy link
Contributor

OpenIM Server Version

chat 1.8.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

[version:v1.8.0]
[mw/rpc_server_interceptor.go:107]
rpc InternalServer error
{"operationID": "1723092996996", "funcName": "/openim.chat.chat/ResetPassword", "req": "verifyCode:"666666" password:"88c393ef2b6a8dcf243847f05fbdbe4b" email:"@.com"", "error": "Error: the provided hex string is not a valid ObjectID |
Error trace: 1 (/pkg/mod/google.golang.org/[email protected]/server.go:1027)
-> handleStream (/pkg/mod/google.golang.org/[email protected]/server.go:1797)
-> processUnaryRPC (/pkg/mod/google.golang.org/[email protected]/server.go:1386)
-> _Chat_ResetPassword_Handler (/
/chat/pkg/protocol/chat/chat.pb.go:4459)
-> RpcServerInterceptor (/pkg/mod/github.com/openimsdk/[email protected]/mw/rpc_server_interceptor.go:59)
-> func1 (/
/chat/pkg/protocol/chat/chat.pb.go:4457)
-> ResetPassword (/
/chat/internal/rpc/chat/password.go:54)
-> UpdatePasswordAndDeleteVerifyCode (/
/chat/pkg/common/db/database/chat.go:242)
-> Transaction (/pkg/mod/github.com/openimsdk/[email protected]/db/mongoutil/tx.go:70)
-> func1 (/
/chat/pkg/common/db/database/chat.go:246)
-> Delete (/
/chat/pkg/common/db/model/chat/verify_code.go:140)
-> parseID (/
*/chat/pkg/common/db/model/chat/verify_code.go:66)
-> Wrap (/pkg/mod/github.com/openimsdk/[email protected]/errs/coderr.go:126)"}

when chat not set sms and email, reset password use supercode, the error will tiggered

Screenshots Link

No response

@icey-yu
Copy link
Member

icey-yu commented Nov 8, 2024

Thank you for submitting the PR. We apologize for the delayed response to your issue, but we have already resolved it in a later version. Thank you again for your contribution to the project.
#594

@icey-yu icey-yu closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants