Password reset is not working
vincentleeuwen opened this issue · comments
Vincent van Leeuwen commented
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??????
Vincent van Leeuwen commented
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"),
),