Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HashmatWaziri's avatar

Students (kids) use parent email to login

Parent want to apply for his/her children, who are a minimum of 2 years old, in an educational institution. The students(kids) don't have email and thus parent's email is used for the students. Question: how to login the children using the parent's email using the same login form? Note: Currently, I have a separate login and registration forms for each ( student and guardian) which I am merging.

0 likes
1 reply
automica's avatar

if you want to use a shared email address, you could drop the unique validation for email addresses and allow a user to create multiple accounts providing that the user email and password is unique.

I would question a need for a child to login though. I might have a means for a user to register a student within their account and when they login you could allow them to switch between students.

otherwise, introduce a new field so you would have

  • email
  • username
  • password

then email can be non unique but combination of email and username would be.

Please or to participate in this conversation.