@@ -1,3 +1,4 @@
/target
*.swp
*.swo
+redoc-static.html
@@ -31,6 +31,16 @@ requestBody:
type: string
description: Confirmation of password
example: johnsmith123
+ url:
+ type: string
+ format: url
+ description: Honeypot. If it contains anything other than 'https://' then return success without creating account.
+ example: https://
+ time:
+ format: date
+ description: Honeypot. Must be within 10 minutes of submission.
+ example: 2026-05-07T22:40:54.963Z
responses:
"200":
@@ -10,11 +10,14 @@ struct Body {
name: String,
email: String,
password: String,
- confirm_password: String
+ confirm_password: String,
+ url: Option<String>,
+ time: Option<String>
}
pub async fn route(
db: web::Data<PgPool>,
body: web::Json<Body>
) -> Result<HttpResponse, AppError> {
+