From 0a0f620d0b7982bd5d57b57fe909c02cb0125b48 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Sat, 8 Oct 2022 10:27:33 +0200 Subject: [PATCH] return "Object" for consistency Co-authored-by: Jeremy Lin --- src/api/core/accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 429768fc1d..a980271bcd 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -180,7 +180,7 @@ async fn register(data: JsonUpcase, conn: DbConn) -> JsonResult { user.save(&conn).await?; Ok(Json(json!({ - "object": "register", + "Object": "register", "CaptchaBypassToken": "", }))) }