Timshel
16 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
5 deletions
-
src/api/core/accounts.rs
-
src/api/core/organizations.rs
|
|
@ -405,8 +405,8 @@ async fn post_set_password(data: Json<SetPasswordData>, headers: Headers, conn: |
|
|
user.save(&conn).await?; |
|
|
user.save(&conn).await?; |
|
|
|
|
|
|
|
|
Ok(Json(json!({ |
|
|
Ok(Json(json!({ |
|
|
"Object": "set-password", |
|
|
"object": "set-password", |
|
|
"CaptchaBypassToken": "", |
|
|
"captchaBypassToken": "", |
|
|
}))) |
|
|
}))) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -370,9 +370,9 @@ async fn get_auto_enroll_status(identifier: &str, headers: Headers, conn: DbConn |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Ok(Json(json!({ |
|
|
Ok(Json(json!({ |
|
|
"Id": id, |
|
|
"id": id, |
|
|
"Identifier": identifier, |
|
|
"identifier": identifier, |
|
|
"ResetPasswordEnabled": rp_auto_enroll, |
|
|
"resetPasswordEnabled": rp_auto_enroll, |
|
|
}))) |
|
|
}))) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|