I want to design like I can access second page only after successful login. Can anyone please help?
Hello everyone, I am working on simple two page website. The first page is login page and second is normal information page. I am using HTML, CSS and JavaScript. The problem is second page(info.html) is accessible without any authentication. I want to design like I can access second page only after successful login. Can anyone please help?
No any search results
You already invited:
1 Answers
Stanley
Upvotes from:
You would need a database to store users and their passwords (MySQL, PostgreSQL, MongoDB, others), you would need a server language (NodeJS, PHP, Java, Python, others) to implement logic to handle HTTP requests, connect to DB and create users, check if passwords match, hash passwords before storing in the DB, etc.
If you don't want to implement the server side logic, I would recommend using Google Firebase Authentication, so you wouldn't need to worry about storing data, implementing auth, etc.
Firebase gives you some options to authentication, like email/password, phone numbers, social media (Facebook, Google, Twitter, Github).
You are looking for authenticating from the ]web api[/url]