Search code examples
phpapacheunix.htpasswd

Apache User change/create password on first login


I have an index.php page for which i need to add user authentication

I have about 80 users that will need access to this page.

I want the users to change the password when they first connect to my page or a way for them to create their own password when they first connect with their username

is there a way to implement such a design ???

what will be the best way to do this as I don't wish to give all of them the same default password.


Solution

  • if try to store user data in a database, this can be done by adding a flag (table field maybe named: force_new_pass) that if is true then show the user change password form