Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Reset Confirm Uid not working #278

Open
femiir opened this issue Jul 3, 2021 · 7 comments
Open

Password Reset Confirm Uid not working #278

femiir opened this issue Jul 3, 2021 · 7 comments

Comments

@femiir
Copy link

femiir commented Jul 3, 2021

how do I really implement this I am a super noob to the world of Django and have spent a whole day trying to fix this

I get the mail link
(http://localhost:8000/api/v1/users/password/reset/confirm/MjA/ap7paa-6b5972d819c153e9eff5c76408475d32/)

and when I click on the mail link, It takes me to the password reset page with four fields which are

  1. New password1
  2. New password2
  3. Uid
  4. Token

my urls.py looks like this


urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/', include('posts.urls')),
    path('api-auth/', include('rest_framework.urls')),
    path('api/v1/users/', include('dj_rest_auth.urls')),
    path('api/v1/users/register/', include('dj_rest_auth.registration.urls')),
    path('api/v1/users/register/verify-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'),
    path('api/v1/users/register/verify-email/<str:key>/', ConfirmEmailView.as_view(), name='account_confirm_email'),
    path('api/v1/users/password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
    # path('password-reset/confirm/<uidb64>/<token>/', TemplateView.as_view(), name='password_reset_confirm')
  
   

    # path('accounts/', include('allauth.urls')),
    
    path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
    path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
]

everything works but I keep getting

{
    "token": [
        "Invalid value"
    ]
}
@Kub-AT
Copy link
Contributor

Kub-AT commented Jul 5, 2021

Check this out: #276 (comment)
and this #269

@femiir
Copy link
Author

femiir commented Jul 5, 2021

thanks so much so I used @squio gist to solve this and another method that works is downgrading to version 2.1.5

@chymdyugah
Copy link

Looks like it's solved in 2.1.9 👌

@femiir
Copy link
Author

femiir commented Jul 19, 2021

Looks like it's solved in 2.1.9 👌

guess a big thumbs up to @iMerica and all contributors

@Tobeyforce
Copy link

On 2.1.9 UID is still invalid & 2.11 didn't work. Downgrading to 2.1.5 worked for me.

@Tobeyforce
Copy link

Tobeyforce commented Sep 25, 2021

Downgrading to 2.1.5 actually broke the dj-rest-auth/registration/resend-email/ for me.. This is messy :(

@Waqasii
Copy link

Waqasii commented Mar 23, 2022

Downgrading 2.1.5 works for me as well, Thanks guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants