- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to make the user login for an offline web app?
While logging in i.e. online, you need to first authenticate against the server and if it works, store the username and a hashed password in the database.
If you can find the account in the database, then you need to generate a new hash, only if the user has changed the password since the last time he logged.
You need to also authenticate against the local database. Log in using the online version of the app at least once.
Advertisements