aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorDaniel GarcĂ­a <[email protected]>2024-06-24 21:17:59 +0200
committerGitHub <[email protected]>2024-06-24 21:17:59 +0200
commita4c7fadbf4ffa242fb78ebd152080028e7f2993c (patch)
tree37e0289ac7e9defcc70ac766c62c9cdff65b8629 /src/api/admin.rs
parent8e2a87fd79d56e4aa9ddd4d17080eebce0cf83af (diff)
downloadvaultwarden-a4c7fadbf4ffa242fb78ebd152080028e7f2993c.tar.gz
vaultwarden-a4c7fadbf4ffa242fb78ebd152080028e7f2993c.zip
Change some missing PascalCase keys (#4671)
Diffstat (limited to 'src/api/admin.rs')
-rw-r--r--src/api/admin.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs
index 22e6f80b..58a056b6 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -364,8 +364,8 @@ async fn users_overview(_token: AdminToken, mut conn: DbConn) -> ApiResult<Html<
async fn get_user_by_mail_json(mail: &str, _token: AdminToken, mut conn: DbConn) -> JsonResult {
if let Some(u) = User::find_by_mail(mail, &mut conn).await {
let mut usr = u.to_json(&mut conn).await;
- usr["UserEnabled"] = json!(u.enabled);
- usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
+ usr["userEnabled"] = json!(u.enabled);
+ usr["createdAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
Ok(Json(usr))
} else {
err_code!("User doesn't exist", Status::NotFound.code);
@@ -376,8 +376,8 @@ async fn get_user_by_mail_json(mail: &str, _token: AdminToken, mut conn: DbConn)
async fn get_user_json(uuid: &str, _token: AdminToken, mut conn: DbConn) -> JsonResult {
let u = get_user_or_404(uuid, &mut conn).await?;
let mut usr = u.to_json(&mut conn).await;
- usr["UserEnabled"] = json!(u.enabled);
- usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
+ usr["userEnabled"] = json!(u.enabled);
+ usr["createdAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
Ok(Json(usr))
}