0

My site has two types of users a business and regular(non-business). The regular can also login via Facebook social login.

Consider the following flow: A business user registers first and then the same user goes to create a regular user account w Facebook Social login... this is the scenario I am trying to prevent.

I want to prevent this by checking the email and if this allready exists.

So consider this UX path and tell me what you think

  1. The Business User clicks the FB login button...the auth dialog appears.
  2. With FB.API call I get his email
  3. On clicking OK I make an ajax request and check for the e-mail in the DB.
  4. If found prevent registration and call FB.logout to log him out of FB.

Ideally i must check the email before the popup appearing...nonetheless I have not found a way getting the email from FB,API before a connection is made to FB...something that will inevitably bring up the dialogue...

What do you think?

4
  • Why do you need to prevent this situation? There are sites where I have six or seven different accounts (not SE, just one is enough 😁 ).
    – Danielillo
    Commented Apr 21, 2022 at 10:48
  • @Danielillo what SE means... Commented Apr 21, 2022 at 10:50
  • I am talking about the case where someone goes to create an account w the same email....in most sites if you go to create an account w the same email....this is denied Commented Apr 21, 2022 at 10:51
  • Well, the question issue is about two different login credentials: personal email and FB account. If the FB account shares the same email I think is not a problem for your company, nor do I understand how it can harm it. SE = Stack Exchange
    – Danielillo
    Commented Apr 21, 2022 at 11:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.