Hey,
I've read the "how-to-secure-database-passwords-in-php" which recommends keeping the password in a config file outside of the web root of the application, but what pattern should I use if i want to control "admin" and "read-only" users of my site. When an admin logs in i need to be able to load the admin config password file, and vice versa. I want to use the same domain model for both users. Should i model a 'Role' object and have this manage the password that is used? or is there a simpler solution. Also should i create two seperate password config files, or bundle both account details into a single file?
Regards,