Skip to content

Commit

Permalink
Merge pull request #495 from dd32/fix/totp-on-front-end
Browse files Browse the repository at this point in the history
Register the TOTP QR generation script on the front-end.
  • Loading branch information
dd32 authored Nov 18, 2022
2 parents 6e7265e + 116ee74 commit 43f2e4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/class-two-factor-totp.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Two_Factor_Totp extends Two_Factor_Provider {
*/
protected function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ) );
add_action( 'two_factor_user_options_' . __CLASS__, array( $this, 'user_two_factor_options' ) );
add_action( 'personal_options_update', array( $this, 'user_two_factor_options_update' ) );
add_action( 'edit_user_profile_update', array( $this, 'user_two_factor_options_update' ) );
Expand Down

0 comments on commit 43f2e4f

Please sign in to comment.