Jump to content

alternative for hardcoded admin password


dadamssg87

Recommended Posts

i don't think i'm being clear enough. My users create accounts in my app. They all have their own password. I have a hardcoded admin password in my code. So if i, or anyone else, inputs the admin password for user's account i/they will gain access. This way i don't have to know all of my user's passwords.

 

Since hardcoding passwords is generally a bad idea, i'm trying to figure out a good way to do this.

So, you basically have a master password that when entered will allow you to login to any account?

 

I kinda think you're going about this wrong. Sure, that is one way of doing it, but personally I would leverage the database to do this. Setup your DB to have user levels/permissions. Once you do this, you can set it up to where your clients can only see their own account, but you can edit/access their account (for good purposes I'd hope.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.