SwapnilShahGit / SIP

This is a project that was created by the PEY Interns of the 2016-2017 year at SOTI. We created an organizational tool for students using the MEAN stack.
3 stars 0 forks source link

Do not save facebook id if empty string #636

Closed hobindar closed 7 years ago

hobindar commented 7 years ago

Currently no two users can sign up without Facebook. This is because front end sends us an empty string as the Facebook id if the user signed up without Facebook. Back end considers the empty string a valid id and will then flag later manual users (whole also signed up with empty string id) as being duplicates.

To solve this, we'll simply not save Facebook id if it's an empty string.