Skip to content

Commit

Permalink
Fix: Password reset link #179
Browse files Browse the repository at this point in the history
  • Loading branch information
flegfleg committed Mar 9, 2020
1 parent a6aa98a commit 3b74d7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion admin/cb-users/class-cb-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,18 @@ public function cb_redirect_prevent_dashboard() {
} // if DOING_AJAX

}

/*
* CUSTOMIZE - Redirects User after Profile update
*
* @since 0.6
*
*/
public function cb_user_profile_redirect() {

wp_redirect( trailingslashit( home_url() ) );
exit;

}

/**
* Get the additional User fields
Expand Down
2 changes: 1 addition & 1 deletion public/class-commons-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function __construct() {
add_filter( 'login_headertitle', array( $this->users, 'cb_login_header_title' ) ); // @TODO RETIRE ME
add_filter( 'login_headerurl', array( $this->users, 'cb_login_custom_site_url' ) );
add_filter( 'login_redirect', array( $this->users, 'cb_login_redirect'), 10, 3 );
add_action( 'profile_update', array( $this->users, 'cb_user_profile_redirect' ) );
add_action( 'profile_update', array( $this->users, 'cb_user_profile_redirect', 12) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_cleanup_styles' ) );
}

Expand Down

0 comments on commit 3b74d7a

Please sign in to comment.