1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add user registration

This commit is contained in:
NG (Graham)
2025-05-12 20:56:24 -04:00
parent d3bd795a01
commit 8affa33ace
14 changed files with 774 additions and 45 deletions

View File

@@ -72,6 +72,8 @@ fn default_slot_upgrades() -> Vec<GarageSlotUpgrade> {
pub struct ServerSettings {
#[serde(default = "default_db_conn")]
pub database: String,
#[serde(default)]
pub auto_signup: bool,
}
fn default_db_conn() -> String {
@@ -81,5 +83,6 @@ fn default_db_conn() -> String {
fn default_server_conf() -> ServerSettings {
ServerSettings {
database: default_db_conn(),
auto_signup: false,
}
}