summaryrefslogtreecommitdiffstats
path: root/atuin-common
diff options
context:
space:
mode:
authorTymanWasTaken <ty@blahaj.land>2024-01-29 06:17:10 -0500
committerGitHub <noreply@github.com>2024-01-29 11:17:10 +0000
commit0faf414cd958137ac60a1f37288994f3a1441780 (patch)
treedf7199c0366893dc393d1cc53230a8f39e88d036 /atuin-common
parente1c2b9c783587547cbf740ee76206507fbbde330 (diff)
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 <ellie@elliehuxtable.com>
Diffstat (limited to 'atuin-common')
-rw-r--r--atuin-common/src/api.rs9
1 files changed, 9 insertions, 0 deletions
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
@@ -34,6 +34,15 @@ pub struct RegisterResponse {
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,
pub password: String,