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

Register & login in both web & mobile. #165

Closed harshachaitanya closed 3 years ago

harshachaitanya commented 3 years ago

@dalenguyen

On the website, we are using the custom form for user registration & login as below image image

we are not using image

Consider when a user registers from the web. That user information is storing on the WordPress database side. But not at the firebase side.

Consider when a user registers from the mobile. That user information is storing on the firebase side. But not on the WordPress database side.

Requirements: Irrespective of whether a user registered from Web/Mobile. Users should able to register & login into both Web & Mobile should able to access user information like posts/comments/addresses/orders/user information   Can you suggest to us how to resolve this?

dalenguyen commented 3 years ago

Have you tried this to create a login & sign-up page?

https://firebase-wordpress-docs.readthedocs.io/en/latest/auth/register-login-form.html

harshachaitanya commented 3 years ago

Yes tried but it's not creating user at WordPress database.

dalenguyen commented 3 years ago

@harshachaitanya can you send me the login page with those implementations?

harshachaitanya commented 3 years ago

@dalenguyen sorry for the delay.

<form id="firebase-register-form" data-redirect="/" data-send-email-confirmation="true"><div><label for="firstName">First Name</label><input type="text" name="firstName" required=""></div><div><label for="lastName">Last Name</label><input type="text" name="lastName" required=""></div><div><label for="email">E-mail</label><input type="email" name="email" required=""></div><div><label for="phoneNumber">Phone Number</label><input type="text" name="phoneNumber" required=""></div><div><label for="password">Password</label><input type="password" name="password" required=""></div><div><label for="confirmPassword">Confirm Password</label><input type="password" name="confirmPassword" required=""></div><div><button type="submit" id="firebase-register-form__submit" data-ol-has-click-handler="">Register</button></div></form>

dalenguyen commented 3 years ago

@harshachaitanya do you have a link for it?

harshachaitanya commented 3 years ago

@dalenguyen Sorry link means. if possible can you share the sample code with us.

dalenguyen commented 3 years ago

Yes, this is the demo page for register & login

https://wordpress.dalenguyen.me/register-login-form/

If you have implemented it on your site, you can share a link, so I can help to take a look at it.