Skip to content
Snippets Groups Projects
Verified Commit 6859eb7b authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: acm

parent 16d00905
No related branches found
No related tags found
2 merge requests!8Release 0.2,!7F acm
Pipeline #16777 passed with warnings
...@@ -204,13 +204,19 @@ enum UserStatus { ...@@ -204,13 +204,19 @@ enum UserStatus {
USER_STATUS_ACTIVE = 2; USER_STATUS_ACTIVE = 2;
} }
// EmailSetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and unset email. // PasswordSetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified password.
message PasswordSetting {
// The password
string password = 1;
}
// EmailSetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified email.
message EmailSetting { message EmailSetting {
// The email adress // The email adress
string email = 1; string email = 1;
} }
// EntitySetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and unset email. // EntitySetting - it is handy to have this as a separate message b/c otherwise we could not distinguish between empty string and an unspecified entity.
message EntitySetting { message EntitySetting {
// The entity which represents this user (e.g. a Person or Device Record). // The entity which represents this user (e.g. a Person or Device Record).
string entity_id = 1; string entity_id = 1;
...@@ -255,7 +261,7 @@ message CreateSingleUserRequest { ...@@ -255,7 +261,7 @@ message CreateSingleUserRequest {
// The new user. // The new user.
User user = 1; User user = 1;
// The new password. // The new password.
string password = 2; PasswordSetting password_setting = 2;
} }
// Response message for the CreateSingeUser RPC // Response message for the CreateSingeUser RPC
...@@ -311,8 +317,8 @@ message RetrieveSingleUserResponse { ...@@ -311,8 +317,8 @@ message RetrieveSingleUserResponse {
message UpdateSingleUserRequest { message UpdateSingleUserRequest {
// The new user. // The new user.
User user = 1; User user = 1;
// The new password. Password will not be updated when this is empty. // The new password. Password will not be updated when this is unset.
string password = 2; PasswordSetting password_setting = 2;
} }
// Response message for the UpdateSingleUser RPC // Response message for the UpdateSingleUser RPC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment