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

Firebase Logout #160

Closed willm132 closed 3 years ago

willm132 commented 3 years ago

Describe the bug When calling [firebase_logout], it asks the user to sign out, then redirects to the wp-login page. This is an issue because the people logging into the website will be customers accessing a database.

Expected behavior When a customer calls [firebase_logout] it should just refresh the page and have nothing to do with Wordpress login

dalenguyen commented 3 years ago

Hi @willm132, which version of the plugin are you using?

willm132 commented 3 years ago

@dalenguyen I just purchased and installed the plugin today. So I am guessing the most recent.

willm132 commented 3 years ago

@dalenguyen it is v2.8.0

dalenguyen commented 3 years ago

Hi @willm132, you have an option to put a link in order to redirect after logging out. Can you try it and let me know if it works?

[firebase_logout redirect="/" button_text="Sign Out"][/firebase_logout]

https://firebase-wordpress-docs.readthedocs.io/en/latest/auth/register-login-form.html?highlight=logout#logout-option

willm132 commented 3 years ago

@dalenguyen Yes! That did work.

dalenguyen commented 3 years ago

Awesome. I'm happy to help.