From b66c99bec200aec2eda5d53ebf8495e705933081 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 30 Nov 2016 13:28:31 +0800 Subject: [PATCH] Fix set password's invalid security notice --- core/um-actions-password.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/um-actions-password.php b/core/um-actions-password.php index bdf9cec6..7fbbebf5 100644 --- a/core/um-actions-password.php +++ b/core/um-actions-password.php @@ -170,7 +170,9 @@ wp_die( __('Whoa, slow down! You\'re seeing this message because you tried to submit a form too fast and we think you might be a spam bot. If you are a real human being please wait a few seconds before submitting the form. Thanks!') ); } - if( ! is_user_logged_in() && isset( $args ) || is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id() ){ + if( !is_user_logged_in() && isset( $args ) && ! um_is_core_page('password-reset') || + is_user_logged_in() && isset( $args['user_id'] ) && $args['user_id'] != get_current_user_id() + ){ wp_die( __( 'This is not possible for security reasons.','ultimatemember') ); }