anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password reset is not working

vincentleeuwen opened this issue · comments

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??????

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"),
  ),