Skip to content

Commit

Permalink
Support quotes and double quotes when resetting password
Browse files Browse the repository at this point in the history
  • Loading branch information
marioshtika committed Mar 30, 2023
1 parent b6ea44c commit 6e33471
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions inc/AppPresser_WPAPI_Mods.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,10 @@ public function get_short_reset_code() {
*/
public function validate_reset_password( $request ) {

global $wpdb;
$return;

$code = $request['code'];
$password = $request['password'];
$code = sanitize_text_field($request['code']);
$password = sanitize_text_field(addslashes($request['password']));

$user = get_users( array( 'meta_key' => 'app_hash', 'meta_value' => $code ) );

Expand Down

0 comments on commit 6e33471

Please sign in to comment.