File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
crates/config/src/sections Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments