Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/users-wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function uwp_modal_login_form_process(){
}

}else if(data.success===false){
jQuery('.uwp-auth-modal .modal-content .modal-error').html(data.data);
jQuery('.uwp-auth-modal .modal-content .modal-error').html(data.data.message);
jQuery('.uwp-auth-modal .modal-content .uwp_login_submit').html($button_text).prop('disabled', false);// enable submit
uwp_maybe_reset_recaptcha();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/users-wp.min.js

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions includes/class-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -1663,17 +1663,25 @@ public function process_forgot() {
// make sure user account is active before account reset
$mod_value = get_user_meta( $user_data->ID, 'uwp_mod', true );
if ( $mod_value == 'email_unconfirmed' ) {
$resend_link = uwp_get_forgot_page_url();
$resend_link = add_query_arg(
array(
'user_id' => $user_data->ID,
'action' => 'uwp_resend',
'_nonce' => wp_create_nonce('uwp_resend'),
),
$resend_link
);
$message = aui()->alert(
array(
'type' => 'error',
'content' => __( 'Your account is not activated yet. Please activate your account first.', 'userswp' ),
'content' => sprintf(__('Your account is not activated yet. Please activate your account first. <a href="%s">Resend</a>.', 'userswp'), $resend_link),
)
);
if ( wp_doing_ajax() ) {
wp_send_json_error( $message );
} else {
$uwp_notices[] = array( 'forgot' => $message );

return;
}
}
Expand Down Expand Up @@ -4909,10 +4917,13 @@ public function ajax_forgot_password_form() {

// add the modal error container
add_action( 'uwp_template_display_notices', array( $this, 'modal_error_container' ) );

$args = array(
'form_title' => '',
'css_class' => ''
);
// get the form
ob_start();
uwp_get_template( 'bootstrap/forgot.php' );
uwp_get_template( 'bootstrap/forgot.php', $args );
$form = ob_get_clean();

// bs5
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

== Changelog ==

= 1.2.55 - 2026-TBD =
* Allow to resend activation email from forgot password form if account is not activated - ADDED

= 1.2.54 - 2026-01-22 =
* Max entries per csv file option in Import/Export setting not showing options - FIXED
* Check nonce while profile image and cover image crop - FIXED/SECURITY
Expand Down