Skip to content

Commit 806002a

Browse files
committed
Allow to resend activation email from forgot password form
1 parent 387e30a commit 806002a

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

includes/class-forms.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,17 +1663,25 @@ public function process_forgot() {
16631663
// make sure user account is active before account reset
16641664
$mod_value = get_user_meta( $user_data->ID, 'uwp_mod', true );
16651665
if ( $mod_value == 'email_unconfirmed' ) {
1666+
$resend_link = uwp_get_forgot_page_url();
1667+
$resend_link = add_query_arg(
1668+
array(
1669+
'user_id' => $user_data->ID,
1670+
'action' => 'uwp_resend',
1671+
'_nonce' => wp_create_nonce('uwp_resend'),
1672+
),
1673+
$resend_link
1674+
);
16661675
$message = aui()->alert(
16671676
array(
16681677
'type' => 'error',
1669-
'content' => __( 'Your account is not activated yet. Please activate your account first.', 'userswp' ),
1678+
'content' => sprintf(__('Your account is not activated yet. Please activate your account first. <a href="%s">Resend</a>.', 'userswp'), $resend_link),
16701679
)
16711680
);
16721681
if ( wp_doing_ajax() ) {
16731682
wp_send_json_error( $message );
16741683
} else {
16751684
$uwp_notices[] = array( 'forgot' => $message );
1676-
16771685
return;
16781686
}
16791687
}

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver
152152

153153
== Changelog ==
154154

155+
= 1.2.55 - 2026-TBD =
156+
* Allow to resend activation email from forgot password form if account is not activated - ADDED
157+
155158
= 1.2.54 - 2026-01-22 =
156159
* Max entries per csv file option in Import/Export setting not showing options - FIXED
157160
* Check nonce while profile image and cover image crop - FIXED/SECURITY

0 commit comments

Comments
 (0)