Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resend_password_processing.php: do not throw on no email #1974

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

hemberger
Copy link
Member

When the email request field doesn't exist, an error is thrown and it sends a bug report email. Even though the actual page has an HTML5 form property that prevents submitting an empty email, it appears that crawlers are submitting this page without the email field.

We can prevent this bug report email if we default email to an empty string, so that the user gets an error message response. This is not ideal, because it means that if the form breaks (e.g. field is changed without updating the processor), we won't get bug emails, but I think this is necessary to avoid the sheer volume of crawler bug emails.

When the `email` request field doesn't exist, an error is thrown and it
sends a bug report email. Even though the actual page has an HTML5 form
property that prevents submitting an empty email, it appears that
crawlers are submitting this page without the `email` field.

We can prevent this bug report email if we default `email` to an empty
string, so that the user gets an error message response. This is not
ideal, because it means that if the form breaks (e.g. field is changed
without updating the processor), we won't get bug emails, but I think
this is necessary to avoid the sheer volume of crawler bug emails.
@hemberger hemberger merged commit c4833f9 into smrealms:main Dec 6, 2024
8 checks passed
@hemberger hemberger deleted the resend-pw-no-email branch December 6, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant