Allow clients to change password

This commit is contained in:
2021-12-06 06:53:49 +01:00
parent 67b3214276
commit 6f91ac3d2d
8 changed files with 284 additions and 70 deletions

View File

@@ -121,9 +121,17 @@ message ApproveUserRequest {
string user_id = 1;
}
// Change password
message ChangePasswordRequest {
string old_password = 1;
string new_password = 2;
}
service UserService {
rpc Register(RegisterUserRequest) returns (RegisterUserResponse) {}
rpc Login(LoginUserRequest) returns (LoginUserResponse) {}
rpc List(ListUsersRequest) returns (ListUsersResponse) {}
rpc Approve(ApproveUserRequest) returns (Empty) {}
rpc ChangePassword(ChangePasswordRequest) returns (Empty) {}
}