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.
This is not possible using Apache's built-in htpasswd
authentication, which is an extremely simple and inflexible login system.
You will need to write (or find somewhere open source) your own login system, probably backed by a database and PHP session storage.
如果尝试将用户数据存储在数据库中,则可以通过添加一个标志(表字段可能名为:force_new_pass)来完成,如果该标志为true,则显示用户更改密码形式
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.