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 {
63
63
pub password_recovery_enabled : bool ,
64
64
65
65
/// 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 " ) ]
68
68
pub account_deactivation_allowed : bool ,
69
69
}
70
70
@@ -76,7 +76,7 @@ impl Default for AccountConfig {
76
76
password_registration_enabled : default_false ( ) ,
77
77
password_change_allowed : default_true ( ) ,
78
78
password_recovery_enabled : default_false ( ) ,
79
- account_deactivation_allowed : default_false ( ) ,
79
+ account_deactivation_allowed : default_true ( ) ,
80
80
}
81
81
}
82
82
}
@@ -89,7 +89,7 @@ impl AccountConfig {
89
89
&& is_default_true ( & self . displayname_change_allowed )
90
90
&& is_default_true ( & self . password_change_allowed )
91
91
&& is_default_false ( & self . password_recovery_enabled )
92
- && is_default_false ( & self . account_deactivation_allowed )
92
+ && is_default_true ( & self . account_deactivation_allowed )
93
93
}
94
94
}
95
95
Original file line number Diff line number Diff line change 2465
2465
"type" : " boolean"
2466
2466
},
2467
2467
"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 `." ,
2469
2469
"type" : " boolean"
2470
2470
}
2471
2471
}
Original file line number Diff line number Diff line change @@ -312,8 +312,8 @@ account:
312
312
313
313
# Whether users are allowed to delete their own account
314
314
#
315
- # Defaults to `false `.
316
- account_deactivation_allowed : false
315
+ # Defaults to `true `.
316
+ account_deactivation_allowed : true
317
317
` ` `
318
318
319
319
## ` captcha`
You can’t perform that action at this time.
0 commit comments