Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 931841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:34:08+00:00 2026-05-15T20:34:08+00:00

We are trying to develop a system where a person creates an account where

  • 0

We are trying to develop a system where a person creates an account where the username is the person’s email address. The problem is, the person can have his own unique account (where he is the admin), plus be a “user” of someone else’s account.

The “admin” of an account would be able to assign a person’s email address to their account plus create a password for that person to log in as a user.

In MySQL, we are having a problem trying to identify what account to log the person into since the email address is the unique identifier. Is there a better way of doing this?

Obviously, using unique usernames for each account a person was assigned to would solve this issue but we were hoping to use one email address since it would be less to remember for a user.

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:34:09+00:00Added an answer on May 15, 2026 at 8:34 pm

    Separation of Concerns principle applies, Separate the two pieces of functionality, (Logging in, and accessing an account) so that they are separate independant functions….
    A User logs in, (email and password simply authenticates that he/she is who they say they are). It is not associated with a single account… Separately, associate each account with those users who are allowed to access it. (In Database, this will be many-to-many table)
    Then, if the user is an admin and has access rights to more than one account, then ask him/her which account he/she wishes to access.

    This has added benefit that if you have auditing needs, you will be able to record, for auditing purposes, not just which account was being used to perform any business functionality, but the actual user who performed the function…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to develop everything in sharepoint as features so I can easily
I am trying develop a basic referrer system to my Django website, system will
I'm trying to develop a simple management system for press releases for my company
I am trying to develop a util (using system-hook) for that works like an
I'm trying to develop a simple homework submission system with Java. I'm working on
I'm trying to develop a feed for an intranet document management system, so that
I am trying to develop a multimedia site and I am leaning heavily toward
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but
I am trying to develop an online translation service (sort of a personal challenge)
I'm trying to develop some SharePoint workflows for the company I work for, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.