标签云

微信群

扫码加入我们

WeChat QR Code

I am using In-built reset password of django. Now the problem is that when i enter a email which does not exists in database, It does not give error that email does not exist. How can i give Validation In Django Reset Password. If email does not exist in auth_table # Reset Passwordpath('password-reset/', auth_views.PasswordResetView.as_view( template_name='commons/password_reset/password_reset.html' ), name='password_reset'),path('password-reset/done/', auth_views.PasswordResetDoneView.as_view( template_name='commons/password_reset/password_reset_done.html' ), name='password_reset_done'),path('password-reset-confirm/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view( template_name='commons/password_reset/password_reset_confirm.html' ), name='password_reset_confirm'),path('password-reset-complete/', auth_views.PasswordResetCompleteView.as_view( template_name='commons/password_reset/password_reset_complete.html' ), name='password_reset_complete'),


basically django reset-password don't give any error message for email not exists

2019年07月23日39分00秒

you need to customize django core reset-password to add email not exists error

2019年07月24日39分00秒

Can i make custom error

2019年07月24日39分00秒

check the below answer

2019年07月24日39分00秒

From a security standpoint, you should not tell the user that the email does not exist.

2019年07月23日39分00秒