In the page where the user reset the password (name=“password_reset_confirm”), I want to use inbuild django password validator. But unfortunately, I am not able to bring them up on the page. Currently the two password fields are visible and when I change the password, it is working fine but I need to include the password validation that is offered by Django which will check for these below conditions.
Blockquote
Your password can’t be too similar to your other personal information.
Your password must contain at least 8 characters.
Your password can’t be a commonly used password.
Your password can’t be entirely numeric.
Blockquote
urlpatterns = [
path(‘admin/’, admin.site.urls),
path(‘login/’, views.loginPage, name = “user_login”),
path(‘register/’, views.registerPage, name=“user_register”),
path(‘registration-success/’, views.registerSuccessPage, name=“register_success”),
path(‘logout/’, views.logoutPage, name = “user_logout”),
path(‘’, views.home, name = “home”),
path(‘’,include(‘forum.urls’)),
path(‘’, include(‘subscription.urls’)),
path(‘’, include(‘core.urls’)),
#URLS
path('reset_password/', auth_views.PasswordResetView.as_view(template_name = "password_reset.html"), name="reset_password"),
path('reset_password_sent/',auth_views.PasswordResetDoneView.as_view(template_name = "password_reset_sent.html"),name="password_reset_done"),
path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(template_name = "password_reset_confirm.html"),name="password_reset_confirm"),
path('reset_password_complete/', auth_views.PasswordResetCompleteView.as_view(template_name = "password_reset_done.html"),name="password_reset_complete"),
]