Skip to content

Commit eebe7eb

Browse files
committed
feat: add update password api to UserProfile
Signed-off-by: ImMin5 <[email protected]>
1 parent 965f77d commit eebe7eb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

proto/spaceone/api/identity/v2/user_profile.proto

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ service UserProfile {
2222
};
2323
}
2424

25+
rpc update_password(UpdatePasswordUserProfileRequest) returns (UserInfo) {
26+
option (google.api.http) = {
27+
post: "/identity/v2/user-profile/update-password"
28+
body: "*"
29+
};
30+
}
31+
2532

2633
rpc verify_email (VerifyEmailRequest) returns (google.protobuf.Empty) {
2734
option (google.api.http) = {
@@ -107,6 +114,17 @@ message UpdateUserProfileRequest {
107114
google.protobuf.Struct tags = 6;
108115
}
109116

117+
//{
118+
// "current_password": "password",
119+
// "new_password": "new_password"
120+
//}
121+
message UpdatePasswordUserProfileRequest {
122+
string new_password = 1;
123+
// +optional
124+
string current_password = 2;
125+
126+
}
127+
110128
//{
111129
// "email": "[email protected]"
112130
//}

0 commit comments

Comments
 (0)