Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenguyen committed Mar 20, 2023
1 parent fa1db0b commit 78d7b68
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 2 deletions.
34 changes: 34 additions & 0 deletions docs/auth/custom-email-template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Custom Email Template
=============

`* Added in PRO v3.26.0`

The Firebase Authentication comes with default email template for Email Verification, Forgot Password... And they are not "branded" to your business identity.

In order to create your own email templates, you can use third party services to manage emails. This will require development skill, so you make sure that your developer know how to work with Firebase cloud functions and WordPress (PHP).

The flag `skip_default_email` and some global functions are added in order to support this feature. E.g.

.. code-block:: php
[firebase_auth
redirect="/"
send_email_confirmation="true"
skip_default_email="true"
forgot_password_link="/forgot-my-password"
]
The `skip_default_email` will not send default email template from Firebase, and you must apply your custom solution otherwise users will not receive anything. So, make you that you test it throughout before use it on production.

The next step is that you need implement those global functions in order to trigger the backend to send emails.

.. code-block:: php
// trigger when default email is disabled for registration flow
window.skipRegistrationDefaultEmailCallback: (user: FirebaseUser) => {}
// trigger when default email is disabled for forgot password flow
window.skipForgotPasswordDefaultEmailCallback: (email: string) => {}
// trigger when default email is disabled for login flow
window.skipLoginDefaultEmailCallback: (user: FirebaseUser) => {}
15 changes: 14 additions & 1 deletion docs/experiments/update-profile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@ This experiment will help to update user's email from WordPress and sync it to F

<div style="position: relative; padding-bottom: 10%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
<iframe width="560" height="315" src="https://www.youtube.com/embed/ueji_3cTIZU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>


Existing Experiments
----------------------------------

.. figure:: /images/experiments/experiments.png
:scale: 70%
:align: center

Firebase Experiments


You can allow email and user profile to be updated from WordPress. That means every time users make changes in WordPress, their information will also be updated in Firebase.
Binary file added docs/images/experiments/experiments.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Complete Guide to Firebase WordPress Integration
.. meta::
:description lang=en: Guide on how to integrate Firebase to WordPress.

Last updated: Jan 17, 2023
Last updated: Mar 20, 2023

.. raw:: html

Expand Down Expand Up @@ -92,6 +92,7 @@ Even though the plugin allows Firebase users to log in to WordPress at the same
* :doc:`/auth/firebase-user-profile`
* :doc:`/auth/firebase-users-managment`
* :doc:`/auth/2fa`
* :doc:`/auth/custom-email-template`

.. toctree::
:maxdepth: 2
Expand All @@ -107,6 +108,7 @@ Even though the plugin allows Firebase users to log in to WordPress at the same
/auth/firebase-user-profile
/auth/firebase-users-managment
/auth/2fa
/auth/custom-email-template

Database
-----------
Expand Down
10 changes: 10 additions & 0 deletions docs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ CHANGELOG

All notable changes to this project will be documented in this file.

## v2.44.0 (2023-03-20)
----------------------------------

#### - :rocket: [New Feature]

- `PRO - v3.26.0`
- add providers after logging in
- add more firebase authentication error messages
- allow skipping default email for custom email flow

## v2.43.0 (2023-01-17)
----------------------------------

Expand Down

0 comments on commit 78d7b68

Please sign in to comment.