mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-22 18:25:27 +01:00
Make default regex for password characters more user-friendly (#1285)
- Change regex pattern per input of @sgdc3 - Add clarifying comments
This commit is contained in:
parent
822818cf33
commit
7c48cf59c7
@ -1,5 +1,5 @@
|
|||||||
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
|
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
|
||||||
<!-- File auto-generated on Mon Jul 10 21:39:00 CEST 2017. See docs/config/config.tpl.md -->
|
<!-- File auto-generated on Sat Jul 15 19:32:28 CEST 2017. See docs/config/config.tpl.md -->
|
||||||
|
|
||||||
## AuthMe Configuration
|
## AuthMe Configuration
|
||||||
The first time you run AuthMe it will create a config.yml file in the plugins/AuthMe folder,
|
The first time you run AuthMe it will create a config.yml file in the plugins/AuthMe folder,
|
||||||
@ -197,8 +197,10 @@ settings:
|
|||||||
maxJoinPerIp: 0
|
maxJoinPerIp: 0
|
||||||
# AuthMe will NEVER teleport players if set to true!
|
# AuthMe will NEVER teleport players if set to true!
|
||||||
noTeleport: false
|
noTeleport: false
|
||||||
# Regex syntax for allowed chars in passwords
|
# Regex syntax for allowed chars in passwords. The default [!-~] allows all visible ASCII
|
||||||
allowedPasswordCharacters: '[\x21-\x7E]*'
|
# characters, which is what we recommend. See also http://asciitable.com
|
||||||
|
# You can test your regex with https://regex101.com
|
||||||
|
allowedPasswordCharacters: '[!-~]*'
|
||||||
# Threshold of the other accounts command, a value less than 2 means disabled.
|
# Threshold of the other accounts command, a value less than 2 means disabled.
|
||||||
otherAccountsCmdThreshold: 0
|
otherAccountsCmdThreshold: 0
|
||||||
# Command to run when a user has more accounts than the configured threshold.
|
# Command to run when a user has more accounts than the configured threshold.
|
||||||
@ -532,4 +534,4 @@ To change settings on a running server, save your changes to config.yml and use
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Mon Jul 10 21:39:00 CEST 2017
|
This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Sat Jul 15 19:32:28 CEST 2017
|
||||||
|
@ -156,9 +156,13 @@ public final class RestrictionSettings implements SettingsHolder {
|
|||||||
public static final Property<Boolean> NO_TELEPORT =
|
public static final Property<Boolean> NO_TELEPORT =
|
||||||
newProperty("settings.restrictions.noTeleport", false);
|
newProperty("settings.restrictions.noTeleport", false);
|
||||||
|
|
||||||
@Comment("Regex syntax for allowed chars in passwords")
|
@Comment({
|
||||||
|
"Regex syntax for allowed chars in passwords. The default [!-~] allows all visible ASCII",
|
||||||
|
"characters, which is what we recommend. See also http://asciitable.com",
|
||||||
|
"You can test your regex with https://regex101.com"
|
||||||
|
})
|
||||||
public static final Property<String> ALLOWED_PASSWORD_REGEX =
|
public static final Property<String> ALLOWED_PASSWORD_REGEX =
|
||||||
newProperty("settings.restrictions.allowedPasswordCharacters", "[\\x21-\\x7E]*");
|
newProperty("settings.restrictions.allowedPasswordCharacters", "[!-~]*");
|
||||||
|
|
||||||
@Comment("Force survival gamemode when player joins?")
|
@Comment("Force survival gamemode when player joins?")
|
||||||
public static final Property<Boolean> FORCE_SURVIVAL_MODE =
|
public static final Property<Boolean> FORCE_SURVIVAL_MODE =
|
||||||
|
Loading…
Reference in New Issue
Block a user