Created
May 14, 2019 17:09
-
-
Save theSekyi/0056886356f387717f2b7b389ba8c03b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Someone asked for password reset for email {{ email }}.Follow the | |
| link below: | |
| {{ protocol }}: //{{ domain }}{% url "password_reset_confirm" uidb64=uid | |
| token=token %} | |
| Your username, in case you've forgotten: {{ user.get_username }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.urls import path | |
| from django.contrib.auth import views as auth_views | |
| from . import views | |
| urlpatterns = [ | |
| #path('login/',views.user_login,name='login') | |
| path('login/',auth_views.LoginView.as_view(),name='login'), | |
| path('logout/',auth_views.LogoutView.as_view(),name='logout'), | |
| path('',views.dashboard,name='dashboard'), | |
| path('password_change/',auth_views.PasswordChangeView.as_view(), | |
| name='password_change'), | |
| path('password_change/done/',auth_views.PasswordChangeDoneView.as_view(), | |
| name='password_change_done'), | |
| path('password_reset/',auth_views.PasswordResetView.as_view(), | |
| name='password_reset'), | |
| path('password_reset/done/',auth_views.PasswordChangeDoneView.as_view(), | |
| name='password_reset_done'), | |
| path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(), | |
| name ='password_reset_confirm'), | |
| path('reset/done/',auth_views.PasswordResetCompleteView.as_view(), | |
| name='password_reset_complete'), | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment