Comments (7)
Add this pattern, It worked for me.
from django.urls import include, path, re_path
from rest_auth.views import PasswordResetConfirmView
urlpatterns = [
# ...
path('rest-auth/password/reset/confirm/<str:uidb64>/<str:token>', PasswordResetConfirmView.as_view(),
name='password_reset_confirm'),
# ..
]
from django-rest-auth.
solved mine too
from django-rest-auth.
Add this pattern, It worked for me.
from django.urls import include, path, re_path from rest_auth.views import PasswordResetConfirmView urlpatterns = [ # ... path('rest-auth/password/reset/confirm/<str:uidb64>/<str:token>', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), # .. ]
Still not workink
from django-rest-auth.
did not work for me
from django-rest-auth.
Hi! This error occurs when the email is entered correctly:
django.urls.exceptions.NoReverseMatch: Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name.
And when the wrong email is entered, this response will be returned:{ "detail": "Password reset e-mail has been sent." }
(The result was the same in both logged in and logged out modes)
a part of my code:
from django.urls import include, path urlpatterns = [ path('rest-auth/', include('rest_auth.urls')), path('rest-auth/registration/', include('rest_auth.registration.urls')),
I also tried this code but it was not useful:
from django.urls import include, path, re_path from rest_auth.views import PasswordResetConfirmView re_path(r'^rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
django-rest-auth == 0.9.5 Django == 3.2.9 python == 3.9.0
I am also having the same issue. when i pass an incorrect email in password/reset
then it shows success message Password reset e-mail has been sent.
but when i pass the actual email which exist in the database it throws error.
Why is this happening? someone tell me
urlpatterns = [
path("admin/", admin.site.urls),
path("auth/", include("dj_rest_auth.urls")),
path("auth/registration/", include("dj_rest_auth.registration.urls")),
path("auth/password/reset", PasswordResetView.as_view(), name="rest_password_reset"),
path("auth/registration/account-confirm-email/<str:key>/", redirect_email_confirm, name="account_email_verification_sent"),
path("auth/reset/passowrd/confirm/<int:uid>/<str:token>/", reset_password_confirm, name="password_reset_confirm"),
path('auth/google/', GoogleLogin.as_view(), name='google_login'),
]
from django-rest-auth.
from django-rest-auth.
Related Issues (20)
- Password Reset Confirm Expect parameter which is not in email HOT 1
- TEMPLATE DOES NOT EXIST
- Option to just need one password field for new account / reset/change password. HOT 2
- Can't login without email even though it's supposed to be optional
- Django and react login with google HOT 2
- TypeError: 'PhoneNumber' object is not subscriptable
- Deprectated import ugettext_lazy from django.utils.translation HOT 1
- ConnectionRefusedError: Registration endpoint response
- Update for Django 4.0 HOT 6
- Wrong response on using login without verifying the user HOT 1
- `LogoutView`'s non-compliance with `drf-spectacular`
- ImportError: cannot import name 'url' from 'django.conf.urls' HOT 6
- The package doesn't work with django 4.0.*
- The package doesn't work with django 4.0.* HOT 1
- The package doesn't work with django 4.0
- The package doesn't work with django 4.0.*
- ImproperlyConfigured at /api/v1/auth/registration/account-email-verification-sent/
- The package doesn't work with Django from 3.12
- Failed to run with the lates allauth lib HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-auth.