Skip to content

feat(account): accepts optional mobile phone number and no longer requires a username. - #1100

Merged
AldemirLucas merged 1 commit into
mainfrom
feat/account-phone-and-remove-username
Sep 29, 2026
Merged

AldemirLucas merged 1 commit into
mainfrom
feat/account-phone-and-remove-username

Conversation

@AldemirLucas

@AldemirLucas AldemirLucas commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A conta deixa de usar username como identificador na interface. O cadastro, a edição e a leitura do usuário passam a tratar o celular como campo opcional.
  • CreateUpdateAccount precisa aceitar conta sem username e gravar phone em E.164 (+5511999999999).
  • allAccount precisa devolver phone. Celular repetido deve voltar em errors com field: "phone".

…tion

This commit removes the username field from the Account model and related forms, replacing it with a phone number field that includes validation for E.164 format. Updates are made to the admin, forms, and tests to reflect these changes, ensuring proper handling of user accounts without usernames.
@AldemirLucas
AldemirLucas requested a review from Winzen September 28, 2026 17:14
@AldemirLucas AldemirLucas self-assigned this Sep 28, 2026
@github-actions github-actions Bot added the prod Indica que o Pull Request está com a branch de destino (base) apontando para main label Sep 28, 2026
@AldemirLucas AldemirLucas changed the title feat(account): remove username field and add phone number with valida… feat(account): aceita celular opcional e deixa de exigir username Sep 28, 2026
@AldemirLucas AldemirLucas changed the title feat(account): aceita celular opcional e deixa de exigir username feat(account): accepts optional mobile phone number and no longer requires a username. Sep 28, 2026

@Winzen Winzen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@mergify

mergify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@AldemirLucas
AldemirLucas merged commit a815957 into main Sep 29, 2026
9 of 10 checks passed
@AldemirLucas
AldemirLucas deleted the feat/account-phone-and-remove-username branch September 29, 2026 17:28
github-actions Bot added a commit that referenced this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prod Indica que o Pull Request está com a branch de destino (base) apontando para main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants