From 75b8bd5af50e46b07433f6a5039a404e6989b40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 3 Apr 2026 15:43:21 +0300 Subject: [PATCH] add: add change password methods --- proto/account.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/proto/account.proto b/proto/account.proto index 570e4e5..662eb64 100644 --- a/proto/account.proto +++ b/proto/account.proto @@ -6,6 +6,7 @@ option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb"; service AccountService { rpc GetAccount(GetAccountRequest) returns (GetAccountResponse); + rpc ChangePassword (ChangePasswordRequest) returns (ChangePasswordResponse); } message GetAccountRequest { @@ -33,4 +34,18 @@ message GetAccountResponse { bool has_pin = 18; } +message ChangePasswordRequest { + string user_id = 1; + string old_password = 2; + string new_password = 3; + optional string code = 4; + optional string pin = 5; +} + +message ChangePasswordResponse { + bool success = 1; + string message = 2; +} + +