dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
111 stars 31 forks source link

Problem with login form #3

Closed liritf closed 6 years ago

liritf commented 6 years ago

I downloaded and activated "Integrate Firebase" plugin and created a WordPress page with [firebase_login] as a shortcode. The form states to enter name and email, but the name field expects @ sign. However, when entering my Firebase email and password, I am unable to login. The screenshot is below. What might be the problem? Also, after logging in, should I be seeing real-time database as if I was logged into Firebase? Thank you! loginform

dalenguyen commented 6 years ago

Hi @liritf, can you show the console log error from your browser?

liritf commented 6 years ago

Hi @dalenguyen, is this what you meant? I double checked the API key and it should be correct, yet logging in still does not work.

error

dalenguyen commented 6 years ago

Yes, this is the API key issue. Can you take a snapshot of your configuration & your firebase configuration? Remember to censor half of your credentials.

dalenguyen commented 6 years ago

Hi @liritf , I just updated the version of the plugin to v0.3.1. Please update and try it again. Thanks,

liritf commented 6 years ago

Below is the screenshot of the firebase credentials. I updated the plugin to the newest version (0.4.0), and now I am getting another error message, the screenshot is also below. I enabled email sign-in in firebase authentication. I am able to use the email and password to sign in to firebase directly, but not through the plugin. cred error

dalenguyen commented 6 years ago

Hi @liritf, please check if you have that user in the firebase authentication. You can take a snapshot of the user if it's possible.

liritf commented 6 years ago

Hi @dalenguyen, the problem was in the Firebase authentication. Now the login works, thank you! Just another quick question: in the shortcode to show data to the user, what class name is it referring to?

dalenguyen commented 6 years ago

Hi @liritf, I'm glad that it works for you. About the class name, it's for you to decide and style it.

echo do_shortcode("[firebase_show class='**your-class-name**']YOUR HTML CODE[/firebase_show]");