vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit adea4ec54d728339935f3a5cb84f380ac817c0ec
parent 6337af59ed31a0c32ccbe915b0d9fec391a52758
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sun,  9 Oct 2022 16:17:16 +0200

Merge branch 'stefan0xC-update-to-v2022.9.2'

Diffstat:
Msrc/api/core/accounts.rs | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs @@ -81,7 +81,7 @@ fn enforce_password_hint_setting(password_hint: &Option<String>) -> EmptyResult } #[post("/accounts/register", data = "<data>")] -async fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> EmptyResult { +async fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> JsonResult { let data: RegisterData = data.into_inner().data; let email = data.Email.to_lowercase(); @@ -178,7 +178,11 @@ async fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> EmptyResult { } } - user.save(&conn).await + user.save(&conn).await?; + Ok(Json(json!({ + "Object": "register", + "CaptchaBypassToken": "", + }))) } #[get("/accounts/profile")]