I would like to know how to create a master password in PHP which can be used to guarantee access to a certain resource protected by authentication, independent of the informed user.
I would like to know how to create a master password in PHP which can be used to guarantee access to a certain resource protected by authentication, independent of the informed user.
You can create a field in the table with the name senhamestre
and when it is time to perform the conditional for the password, make a OR
to senhamestre
. You can login with the password value or the master password.