From 6859eb7bb3d63503c5ae4ca985fb61e845519e7f Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 30 Nov 2021 17:34:31 +0100 Subject: [PATCH] WIP: acm --- proto/caosdb/acm/v1alpha1/main.proto | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/proto/caosdb/acm/v1alpha1/main.proto b/proto/caosdb/acm/v1alpha1/main.proto index d844616..0065b54 100644 --- a/proto/caosdb/acm/v1alpha1/main.proto +++ b/proto/caosdb/acm/v1alpha1/main.proto @@ -204,13 +204,19 @@ enum UserStatus { 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 { // The email adress 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 { // The entity which represents this user (e.g. a Person or Device Record). string entity_id = 1; @@ -255,7 +261,7 @@ message CreateSingleUserRequest { // The new user. User user = 1; // The new password. - string password = 2; + PasswordSetting password_setting = 2; } // Response message for the CreateSingeUser RPC @@ -311,8 +317,8 @@ message RetrieveSingleUserResponse { message UpdateSingleUserRequest { // The new user. User user = 1; - // The new password. Password will not be updated when this is empty. - string password = 2; + // The new password. Password will not be updated when this is unset. + PasswordSetting password_setting = 2; } // Response message for the UpdateSingleUser RPC -- GitLab