Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

247
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda