anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

Password reset is not working #137

Closed vincentleeuwen closed 3 years ago

vincentleeuwen commented 3 years ago

Maybe I'm missing something but for me password is simply not being updated?

Token was obtained by posting to /password_reset, sending to /confirm endpoint:

{ 
    "token": "14cbd43e7ed36",
    "password": "p4ssw0rd",
    "email": "user@example.com"
}

Receiving the following response:

{
    "status": "OK"
}

But then, when i try to login on behalf of the user the password hasn't been changed??????

vincentleeuwen commented 3 years ago

Never mind, this was all on me, forgot to add a trailing slash in url config. For anybody struggling in future, I had to change this:

path(
      "pwreset",
      include("django_rest_passwordreset.urls", namespace="password_reset"),
  ),

into:

path(
      "pwreset/",
      include("django_rest_passwordreset.urls", namespace="password_reset"),
  ),