Username on the first registration page is optional

This commit is contained in:
Quentin Gliech
2024-12-20 16:44:35 +01:00
parent 3f842bc045
commit 10bbcb0657

View File

@@ -28,7 +28,7 @@ Please see LICENSE in the repository root for full details.
{% if features.password_registration %}
{% call(f) field.field(label=_("common.username"), name="username", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" required />
<input {{ field.attributes(f) }} class="cpd-text-control" type="text" autocomplete="username" autocorrect="off" autocapitalize="off" />
<div class="cpd-form-message cpd-form-help-message" id="{{ f.id }}-help">
@username:{{ branding.server_name }}
</div>