aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-08-27 15:59:41 -0600
committercurly <curly@infernal.garden>2024-08-27 15:59:41 -0600
commit9dc06c21efbec6c14f388078761c3a2f7cd9093e (patch)
treee6b9190db9ce885166be6f650733ee536fbdf6e9 /src/main.rs
parent3d8d55ecc531f6db73fcf86ac44ce28b9bf097c9 (diff)
downloadpoko_server-9dc06c21efbec6c14f388078761c3a2f7cd9093e.tar.gz
poko_server-9dc06c21efbec6c14f388078761c3a2f7cd9093e.tar.bz2
poko_server-9dc06c21efbec6c14f388078761c3a2f7cd9093e.zip
UseRegistrationKeys featureHEADmaster
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 88123df..9d7654b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -79,7 +79,7 @@ struct RegisterForm {
name: String,
password: String,
id: Option<UID>,
- key: String,
+ key: Option<String>,
}
#[post("/register", data="<data>", format="json")]
async fn new_user(data: Json<RegisterForm>, db: &State<Mutex<DB>>) -> (Status, Result<Json<UserOut>, Json<String>>) {