Security Issue!

I have two data types in my app. “User” and “Vendor”. My concern is that I had to manually create the password field, therefore passwords will be stored plain text. Obviously, this is bad for me as well as the users entrusting me with their data. How do I create a password input for the new data type that stores the password as hashes? @emmanuel

The way is only use the user type and have a way to distinguish users with a field. Then it’s hashed.

1 Like

Yeah, just create two different pages for a user vs vendor. Then each signup would still be a user. But in your database, create a new field called “User Type”. Both pages would sign up as a User in the database. But when you sign up a regular user, set the User Type as "user’. And when a vendor signs up, set the User Type as “vendor”.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.