How do I securely store usernames and passwords for users using my website?
I am coding a website for a local HOA and one of their requests was to make the website locked behind a username and password authentication. I have everything working from the front end using javascript and html. When a user visits the site they are redirected to my login.html in order to enter a username and password. If they enter valid credentials it allows them to view the remaining content on the website, and if they don’t it prompts them to try again without letting them view. This all works perfectly, however; I am storing my usernames and passwords in my login.js file which is on the front end so when a user inspects the code they have access to all users credentials.