Skip to content

Commit 68d6f5c

Browse files
committed
Fixes a typo in a message
1 parent 60d9a78 commit 68d6f5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ mod tests {
317317
.body(r#"{"current_password":"test","new_password":"new"}"#);
318318
let response = request.dispatch().await;
319319
assert_eq!(response.status(), Status::Ok);
320-
assert_eq!(response.into_string().await.unwrap(), r#"{"detail":"Passwod changed for user test@rockpass.sample and deleted 1 old tokens"}"#);
320+
assert_eq!(response.into_string().await.unwrap(), r#"{"detail":"Password changed for user test@rockpass.sample and deleted 1 old tokens"}"#);
321321
}
322322

323323
#[rocket::async_test]

src/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub async fn post_auth_users_set_password(authorization: Authorization, new_user
303303
Ok(rows) => rows,
304304
Err(_) => 0
305305
};
306-
status::Custom(Status::Ok, Json(json!({"detail": format!("Passwod changed for user {} and deleted {} old tokens", authorization.1.email, deleted_rows)})))
306+
status::Custom(Status::Ok, Json(json!({"detail": format!("Password changed for user {} and deleted {} old tokens", authorization.1.email, deleted_rows)})))
307307
}
308308
}
309309
} else {

0 commit comments

Comments
 (0)