More restrictive pattern for username check in registration

This commit is contained in:
vcestone 2021-01-12 18:27:45 +01:00
parent 3ddf48d55b
commit d9894e1531
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
<label for="username" class="${properties.kcLabelClass!}">${msg("username")}</label>
</div>
<div class="${properties.kcInputWrapperClass!}">
<input type="text" id="username" class="${properties.kcInputClass!}" name="username" value="${(register.formData.username!'')}" pattern="^(?!postfix$)(?!cyrus$)[^\s/\-\\]+$" autocomplete="username" />
<input type="text" id="username" class="${properties.kcInputClass!}" name="username" value="${(register.formData.username!'')}" pattern="^(?!postfix$)(?!cyrus$)[\w\.]+$" autocomplete="username" />
</div>
</div>
</#if>