diff --git a/class-auth.php b/class-auth.php index 420e09d..be0aa7a 100644 --- a/class-auth.php +++ b/class-auth.php @@ -128,7 +128,7 @@ public function authenticate_user( $username, $password, $custom_auth = '' ) { */ $user = apply_filters( 'jwt_auth_do_custom_auth', $custom_auth_error, $username, $password, $custom_auth ); } else { - $user = wp_authenticate( $username, $password ); + $user = wp_authenticate($username, wp_slash($password)); } return $user;