From 080e38d227a086b1493b58d24d4789d5551de221 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Fri, 7 Oct 2022 06:33:29 +0200 Subject: [PATCH] return CaptchaBypassToken and register object --- src/api/core/accounts.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 4508c5fd..429768fc 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -180,7 +180,8 @@ async fn register(data: JsonUpcase, conn: DbConn) -> JsonResult { user.save(&conn).await?; Ok(Json(json!({ - "registration": "success", + "object": "register", + "CaptchaBypassToken": "", }))) }