# Restringir nome de usuário ao primeiro nome do usuário

**URL:** <https://meta.discourse.org/t/restrict-username-to-user-first-name/297604>\
**Category:** Product Support\
**Created:** [2 Março , 2024 13:29 UTC](https://meta.discourse.org/t/restrict-username-to-user-first-name/297604 "2024-03-02T13:29:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2 Março , 2024 19:14 UTC](https://meta.discourse.org/t/restrict-username-to-user-first-name/297604/5 "2024-03-02T19:14:40Z")

</div>

Você também pode tentar este componente; ele deve fazer o que você deseja em seu contexto.

Ele oculta o campo de nome de usuário e gera seu valor com base no campo de nome, extraindo apenas o primeiro nome.

Ele espera as seguintes configurações habilitadas:

- `full_name_required`
- `prioritize_username_in_ux`

> **[GitHub - Arkshine/discourse-display-first-name-only](https://github.com/Arkshine/discourse-display-first-name-only)**
>
> Contribute to Arkshine/discourse-display-first-name-only development by creating an account on GitHub.

---

_[View the full topic](https://meta.discourse.org/t/restrict-username-to-user-first-name/297604)._
