Forum Academy Marketplace Showcase Pricing Features

How to check if password exists?

I have a password change section in my app. However, for users that log in through facebook (instead of email and password), I’d like to hide this section.

How can I do this?

I am not exactly sure for Facebook but for Google I did this:

If Google’s email is empty

  • Element is not visible

Facebook works the same way (you can check if a user has a Facebook ID or Facebook email). I have 3 types of users

  1. User signs up with email
  2. User signs up with email, then connects their facbook account
  3. User signs up with facebook

I want to make sure 1) and 2) see the password change option, but 3) does not.

This topic was automatically closed after 70 days. New replies are no longer allowed.