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

Add CheckUserPassword to user.proto #20

Closed
Sddilora opened this issue May 16, 2024 · 0 comments · Fixed by #27
Closed

Add CheckUserPassword to user.proto #20

Sddilora opened this issue May 16, 2024 · 0 comments · Fixed by #27
Assignees
Labels

Comments

@Sddilora
Copy link
Member

Sddilora commented May 16, 2024

We need to retrieve the information to determine if the user's password matches the existing one in the user service. Therefore, the user service requires a new endpoint for checking user passwords. Let's implement this in the user.proto file.

option go_package = "github.com/octoposprime/op-be-shared/pkg/proto/pb/user";
import "google/protobuf/timestamp.proto";

service UserSvc {
    rpc GetUsersByFilter(UserFilter) returns (Users) {}
	rpc CreateUser(User) returns(User)  {}
	rpc DeleteUser(User) returns (User) {}
	rpc UpdateUserRole(User) returns (User) {}
	rpc UpdateUserBase(User) returns (User) {}
	rpc UpdateUserStatus(User) returns (User) {}
	rpc ChangePassword(UserPassword) returns (UserPasswordResult) {}
	rpc CheckUserPassword(User) returns (User) {} // new
}

I have added the necessary parts above. Please avoid copying and pasting the entire script. The rest of the code should remain unchanged. Also, the comments need to be removed (//new).

@Sddilora Sddilora changed the title Add CheckUserPassword and necessary fields to user.proto Add CheckUserPassword to user.proto May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants