usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
122 stars 48 forks source link

Fix "PHP Notice: Undefined property: stdClass::$pass" #39

Closed psaikali closed 3 years ago

psaikali commented 3 years ago

The newest updates introduces a bug, there is a PHP notice: PHP Notice: Undefined property: stdClass::$pass in …/wp-content/plugins/jwt-auth/class-devices.php on line 99

pesseba commented 3 years ago

@psaikali I will look at this.

pesseba commented 3 years ago

Hi @psaikali, I couldn't reproduce the problem here.... Your changes check if a token has $pass property in payload to ignore password change verification. If some developer needs to supress the password change verification, this check could be helpfull. So I will merge your pull request.