|
@@ -4,8 +4,8 @@ from misago.utils import get_msgid
|
|
|
|
|
|
settings_fixtures = (
|
|
|
# Register and Sign-In Settings
|
|
|
- ('register-and-signin', {
|
|
|
- 'name': _("Register and Sign-In Settings"),
|
|
|
+ ('accounts', {
|
|
|
+ 'name': _("Member Accounts Settings"),
|
|
|
'description': _("Those settings allow you to increase security of your members accounts."),
|
|
|
'settings': (
|
|
|
('account_activation', {
|
|
@@ -59,74 +59,12 @@ settings_fixtures = (
|
|
|
'description': _("If you want to, Misago can include new user password in welcoming e-mail that is sent to new users after successful account creation."),
|
|
|
'position': 5,
|
|
|
}),
|
|
|
- ('sessions_validate_ip', {
|
|
|
- 'value': True,
|
|
|
- 'type': "boolean",
|
|
|
- 'input': "yesno",
|
|
|
- 'name': _("Check IP on session authorization"),
|
|
|
- 'description': _("Makes sessions more secure, but can cause problems with proxies and VPN's."),
|
|
|
- 'position': 6,
|
|
|
- }),
|
|
|
- ('remember_me_allow', {
|
|
|
- 'value': True,
|
|
|
- 'type': "boolean",
|
|
|
- 'input': "yesno",
|
|
|
- 'separator': _("Sign-In Settings"),
|
|
|
- 'name': _('Enable "Remember Me" functionality'),
|
|
|
- 'description': _("Turning this option on allows users to sign in on to your board using cookie-based tokens. This may result in account compromisation when user fails to sign out on shared computer."),
|
|
|
- 'position': 7,
|
|
|
- }),
|
|
|
- ('remember_me_lifetime', {
|
|
|
- 'value': 90,
|
|
|
- 'type': "integer",
|
|
|
- 'input': "text",
|
|
|
- 'name': _('"Remember Me" token lifetime'),
|
|
|
- 'description': _('Number of days since either last use or creation of "Remember Me" token to its expiration.'),
|
|
|
- 'position': 8,
|
|
|
- }),
|
|
|
- ('remember_me_extensible', {
|
|
|
- 'value': 1,
|
|
|
- 'type': "boolean",
|
|
|
- 'input': "yesno",
|
|
|
- 'name': _('Allow "Remember Me" tokens refreshing'),
|
|
|
- 'description': _('Set this setting to off if you want to force your users to periodically update their "Remember Me" tokens by signing in. If this option is on, Tokens are updated when they are used to open new session.'),
|
|
|
- 'position': 9,
|
|
|
- }),
|
|
|
- ('login_attempts_limit', {
|
|
|
- 'value': 3,
|
|
|
- 'default': 3,
|
|
|
- 'type': "integer",
|
|
|
- 'input': "text",
|
|
|
- 'separator': _("Brute-Force Countermeasures"),
|
|
|
- 'name': _("Limit Sign In attempts"),
|
|
|
- 'description': _('Enter maximal number of allowed Sign In attempts before IP address "jams".'),
|
|
|
- 'position': 10,
|
|
|
- }),
|
|
|
- ('registrations_jams', {
|
|
|
- 'value': 1,
|
|
|
- 'default': 1,
|
|
|
- 'type': "boolean",
|
|
|
- 'input': "yesno",
|
|
|
- 'name': _("Count failed register attempts too"),
|
|
|
- 'description': _("Set this setting to yes if you want failed register attempts to count into limit."),
|
|
|
- 'position': 11,
|
|
|
- }),
|
|
|
- ('jams_lifetime', {
|
|
|
- 'value': 15,
|
|
|
- 'default': 15,
|
|
|
- 'type': "integer",
|
|
|
- 'input': "text",
|
|
|
- 'name': _("Automaticaly unlock jammed IPs"),
|
|
|
- 'description': _('Enter number of minutes since IP address "jams" to automatically unlock it, or 0 to never unlock jammed IP adresses. Jams dont count as bans.'),
|
|
|
- 'position': 12,
|
|
|
- }),
|
|
|
),
|
|
|
}),
|
|
|
)
|
|
|
|
|
|
|
|
|
def load_fixtures():
|
|
|
- load_monitor_fixture(monitor_fixtures)
|
|
|
load_settings_fixture(settings_fixtures)
|
|
|
|
|
|
|