Permalink
Browse files

Fix invalid security notice in set password

  • Loading branch information...
1 parent b66c99b commit c54e8d3c56027f1c87f62e54c722dc7c6e72f78a @champsupertramp champsupertramp committed Nov 30, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/um-actions-password.php
@@ -171,6 +171,7 @@ function um_change_password_errors_hook( $args ) {
}
if( !is_user_logged_in() && isset( $args ) && ! um_is_core_page('password-reset') ||
+ isset( $args['user_id'] ) && 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') );

0 comments on commit c54e8d3

Please sign in to comment.