Skip to content

Commit

Permalink
Fix set password's invalid security notice
Browse files Browse the repository at this point in the history
  • Loading branch information
champsupertramp committed Nov 30, 2016
1 parent e11897d commit b66c99b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/um-actions-password.php
Expand Up @@ -170,7 +170,9 @@ function um_change_password_errors_hook( $args ) {
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!') ); 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') ); wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
} }


Expand Down

0 comments on commit b66c99b

Please sign in to comment.