diff --git a/authentication/views.py b/authentication/views.py index 7a11654..5b715d0 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -167,8 +167,8 @@ NetCop Team messages.error(request, f'Failed to send reset email: {str(e)}') except User.DoesNotExist: - # Don't reveal if email exists or not for security - messages.success(request, 'If an account with that email exists, password reset instructions have been sent.') + # Show helpful error message for better UX + messages.error(request, f'No account found with email {email}. Please check your email address or create a new account.') return render(request, 'authentication/forgot_password.html') diff --git a/templates/authentication/forgot_password.html b/templates/authentication/forgot_password.html index a4d685b..a724cc7 100644 --- a/templates/authentication/forgot_password.html +++ b/templates/authentication/forgot_password.html @@ -260,6 +260,7 @@