API /auth/reset-password not working

System Information
  • Strapi Version: 4.2.2
  • Operating System: Ubuntu 20.04 LTS
  • Database: MariaDB
  • Node Version: 16.15
  • NPM Version: 8.13
  • Yarn Version: 1.22

Calls to API /auth/reset-password correctly return status 200 but the new password is never set.
Moreover after resetting it’s impossible to login because both new and old password return {"data":null,"error":{"status":400,"name":"ValidationError","message":"Invalid identifier or password","details":{}}}