Manual Email VS Google Login

Good Morning,

We are finally starting to test our app. We have an option for a user to login via email, and Google and Facebook. When I create an account with an email, it works fine. When I create another account, say via Google with the same email, it registers. Shouldn’t email, since they are unique values, raise an error, or alarm. We want to prevent multiple accounts using the same email. Is there a way to prevent this in Backendless?

Thanks,

Michael

As an addendum. The email is marked as identity.

Addendum #2.

Ok. If you register for login via email first, then use Google or Facebook login, with the same email address, then it will allow you to register.

If you register login via Facebook or Google, then attempt to register via email with the same email address, then an error is produced as expected.

Thanks,

Michael

Hello @Michael_Iverson

Thanks for the report. We will investigate this issue and respond to you as soon as possible.

Regards,
Inna

I’ve investigated your case.
If an email is marked as a user identity, then:

  • if you initially register a user using e-mail, then the user will receive confirmation by e-mail. If the user does not confirm the email address and tries to log in through Google using the same email, then this error will return:
    {"code": 3087, "message": "User cannot login - email address must be confirmed first", "errorData": {}}

  • If a user signs up through email, then confirms his email address, and then logs in through Google with the same address, then his social account will change from Backendless to Google, and the user will receive an email stating that he logged in for the first time.

Thus, there will be no re-registration. There will be one account with a unique email.

Regards,
Inna