From 0faf414cd958137ac60a1f37288994f3a1441780 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Mon, 29 Jan 2024 06:17:10 -0500 Subject: feat: Add change-password command & support on server (#1615) * Add change-password command & support on server * Add a test for password change * review: run format --------- Co-authored-by: Ellie Huxtable --- atuin-common/src/api.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'atuin-common/src/api.rs') diff --git a/atuin-common/src/api.rs b/atuin-common/src/api.rs index b608937f..d9334ffc 100644 --- a/atuin-common/src/api.rs +++ b/atuin-common/src/api.rs @@ -33,6 +33,15 @@ pub struct RegisterResponse { #[derive(Debug, Serialize, Deserialize)] pub struct DeleteUserResponse {} +#[derive(Debug, Serialize, Deserialize)] +pub struct ChangePasswordRequest { + pub current_password: String, + pub new_password: String, +} + +#[derive(Debug, Serialize, Deserialize)] +pub struct ChangePasswordResponse {} + #[derive(Debug, Serialize, Deserialize)] pub struct LoginRequest { pub username: String, -- cgit v1.3.1