How to create a login page using your own database ?

Hi guys,

I would like to know how can I create a login page which fetches the username and password from the app database. 


Hi Ivandro,

Can you explain us better your use case? because normally on login pages the user is the one that needs to provide user and password and those will be check against what you have on the database.



Ivandro, you mean save user and password locally and send it to the site when asked to login?

The number 1 rule of safety is "never store passwords".

The safest approach is to have a user token saved in device and login page checks for a token locally.

  • If found and matches the server token for a user, logs the user without using password.
  • If not found, sends to login page.

Those tokens can have an expiration date and be disabled from a different device to increase security.