Jump to content

Recommended Posts

I have a quick question...

 

Does it sound reasonable to provide a login form that uses a login name and password where the user enters his/her login name but then has a choice to use one of two passwords.

 

One password would provide access to certain areas of the site while the other password would be limited to a specific page. Client wants to use one username but only allow certain people limited access.

 

Is there a resource that you can point me to or a quick suggestion for a solution?

 

Thanks so much for taking the time to read!

Link to comment
https://forums.phpfreaks.com/topic/269203-login-two-potential-passwords/
Share on other sites

You could use a separate table for an admin password for a certain user(s) linked by a foreign key. It adds a little bit of security. Of course, you can have a column in the users table that specifies if the users have a certain level of access.

How would you go about doing logging or auditing with two versions of the same user? Why does your client want one username but two users? Why are people sharing usernames to begin with? This whole thing sounds like an unreasonable client asking for something dumb. They pay you to be smart with computers. Tell them when their idea is stupid.

How would you go about doing logging or auditing with two versions of the same user? Why does your client want one username but two users? Why are people sharing usernames to begin with? This whole thing sounds like an unreasonable client asking for something dumb. They pay you to be smart with computers. Tell them when their idea is stupid.

 

And THIS is the solution...really. You're totally right!

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.