Skip to content

Commit 3543b40

Browse files
committed
Change the default value of account_deactivation_allowed to true.
1 parent 238be90 commit 3543b40

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/config/src/sections/account.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ pub struct AccountConfig {
6363
pub password_recovery_enabled: bool,
6464

6565
/// Whether users are allowed to delete their own account. Defaults to
66-
/// `false`.
67-
#[serde(default = "default_false", skip_serializing_if = "is_default_false")]
66+
/// `true`.
67+
#[serde(default = "default_true", skip_serializing_if = "is_default_true")]
6868
pub account_deactivation_allowed: bool,
6969
}
7070

@@ -76,7 +76,7 @@ impl Default for AccountConfig {
7676
password_registration_enabled: default_false(),
7777
password_change_allowed: default_true(),
7878
password_recovery_enabled: default_false(),
79-
account_deactivation_allowed: default_false(),
79+
account_deactivation_allowed: default_true(),
8080
}
8181
}
8282
}
@@ -89,7 +89,7 @@ impl AccountConfig {
8989
&& is_default_true(&self.displayname_change_allowed)
9090
&& is_default_true(&self.password_change_allowed)
9191
&& is_default_false(&self.password_recovery_enabled)
92-
&& is_default_false(&self.account_deactivation_allowed)
92+
&& is_default_true(&self.account_deactivation_allowed)
9393
}
9494
}
9595

docs/config.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@
24652465
"type": "boolean"
24662466
},
24672467
"account_deactivation_allowed": {
2468-
"description": "Whether users are allowed to delete their own account. Defaults to `false`.",
2468+
"description": "Whether users are allowed to delete their own account. Defaults to `true`.",
24692469
"type": "boolean"
24702470
}
24712471
}

docs/reference/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ account:
312312

313313
# Whether users are allowed to delete their own account
314314
#
315-
# Defaults to `false`.
316-
account_deactivation_allowed: false
315+
# Defaults to `true`.
316+
account_deactivation_allowed: true
317317
```
318318
319319
## `captcha`

0 commit comments

Comments
 (0)