Jump to content

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.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.