I am setting up a password set feature using gmail host for my app and received above error message.
Below is my SMTP config:
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
I have provided my gmail account and app passkey.
Below is my app’s urls.py and loginuser.html:
core/urls.py
path(
"password_reset/", auth_views.PasswordResetView.as_view(), name="password_reset"
),
path(
"password_reset_done/",
auth_views.PasswordResetDoneView.as_view(),
name="password_reset_done",
),
path(
"reset/<uidb64>/<token>/",
auth_views.PasswordResetConfirmView.as_view(),
name="password_reset_confirm",
),
path(
"password_reset_complete/",
auth_views.PasswordResetCompleteView.as_view(),
name="password_reset_complete",
),
<div class="text-center">
<a href="{% url 'core:signupuser' %}?next={{ request.GET.next }}">▮Create an account?</a>······
<a href="{% url 'core:password_reset' %}">▮Forget password?</a>
</div>
The error message appeared when i clicked on ‘Reset my password’ after entering a valid emaill address.
Appreciate someone can advise me on how to resolve my problem.
Thank you in advance.