Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!