Is there a specific or preferred way to set the username for new user registrations to be their email address?
At the moment my user signup form contains both fields:
<!-- Username -->
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="joesmith" {%- if account is defined %} value="{{ account.username }}"{% endif -%}/>
{% if account is defined %}
{{ _self.errorList(account.getErrors('username')) }}
{% endif %}
<!-- Email -->
<label for="email" >Email</label>
<input type="text" id="email" name="email" {%- if account is defined %} value="{{ account.email }}"{% endif -%}/ autocapitalize=off autocorrect=off>
{% if account is defined %}
{{ _self.errorList(account.getErrors('email')) }}
{% endif %}