You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following constraint will ensures a username cannot be spoofed by using many
38
-
detection mechanisms:
39
+
The following constraint will use different detection mechanisms to ensure that
40
+
the username is not spoofed:
39
41
40
42
.. configuration-block::
41
43
@@ -103,9 +105,13 @@ Options
103
105
104
106
This option is a bitmask of the checks you want to perform on the string:
105
107
106
-
* ``NoSuspiciousCharacters::CHECK_INVISIBLE`` checks for the presence of invisible characters such as zero-width spaces, or character sequences that are likely not to display, such as multiple occurrences of the same non-spacing mark.
107
-
* ``NoSuspiciousCharacters::CHECK_MIXED_NUMBERS`` (usable with ICU 58 or higher) checks for numbers from different numbering systems.
108
-
* ``NoSuspiciousCharacters::CHECK_HIDDEN_OVERLAY`` (usable with ICU 62 or higher) checks for combining characters hidden in their preceding one.
108
+
* ``NoSuspiciousCharacters::CHECK_INVISIBLE`` checks for the presence of invisible
109
+
characters such as zero-width spaces, or character sequences that are likely
110
+
not to display, such as multiple occurrences of the same non-spacing mark.
111
+
* ``NoSuspiciousCharacters::CHECK_MIXED_NUMBERS`` (usable with ICU 58 or higher)
112
+
checks for numbers from different numbering systems.
113
+
* ``NoSuspiciousCharacters::CHECK_HIDDEN_OVERLAY`` (usable with ICU 62 or higher)
114
+
checks for combining characters hidden in their preceding one.
109
115
110
116
You can also configure additional requirements using :ref:`locales <locales>` and
111
117
:ref:`restrictionLevel <restrictionlevel>`.
@@ -131,15 +137,22 @@ Passing an empty array, or configuring :ref:`restrictionLevel <restrictionlevel>
131
137
Configures the set of acceptable characters for the validated string through a
132
138
specified "level":
133
139
134
-
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_MINIMAL`` requires the string's characters to match :ref:`the configured locales <locales>`'.
135
-
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_MODERATE`` also requires the string to be `covered`_ by Latin and any one other `Recommended`_ or `Limited Use`_ script, except Cyrillic, Greek, and Cherokee.
136
-
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_HIGH`` (usable with ICU 58 or higher) also requires the string to be `covered`_ by any of the following sets of scripts:
140
+
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_MINIMAL`` requires the string's
141
+
characters to match :ref:`the configured locales <locales>`'.
142
+
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_MODERATE`` also requires the string
143
+
to be `covered`_ by Latin and any one other `Recommended`_ or `Limited Use`_
144
+
script, except Cyrillic, Greek, and Cherokee.
145
+
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_HIGH`` (usable with ICU 58 or higher)
146
+
also requires the string to be `covered`_ by any of the following sets of scripts:
137
147
138
148
* Latin + Han + Bopomofo (or equivalently: Latn + Hanb)
139
149
* Latin + Han + Hiragana + Katakana (or equivalently: Latn + Jpan)
140
150
* Latin + Han + Hangul (or equivalently: Latn + Kore)
141
-
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_SINGLE_SCRIPT`` also requires the string to be `single-script`_.
142
-
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_ASCII`` (usable with ICU 58 or higher) also requires the string's characters to be in the ASCII range.
151
+
152
+
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_SINGLE_SCRIPT`` also requires the
153
+
string to be `single-script`_.
154
+
* ``NoSuspiciousCharacters::RESTRICTION_LEVEL_ASCII`` (usable with ICU 58 or higher)
155
+
also requires the string's characters to be in the ASCII range.
143
156
144
157
You can accept all characters by setting this option to
0 commit comments