Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
password type input but show some of the text for different user roles

I am creating a user management system which have 2 user roles: Admin and Staff

When admin checking the user information it will show all the data that query from database

Example: enter image description here

my aim is to hide the phone number/ contact number when it show to the Staff user and only show them the last 4 digits of the phone number

example :

enter image description here

I have no idea how to make this archieve

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Instead of masking the input in the UI, it's better to change the actual value in the backend with a some code like this:

phoneNum = '####' + phoneNum.substring(4)

this is also better that just change the input type because it would also be easely bypassed.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda