-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Trim email before password reset request #42893
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
base: 6.0-dev
Are you sure you want to change the base?
Conversation
I remember I looked at this issue at PBF but could not replicate it for some reasons. If we want to trim space like this, I think we should add |
Personaly this is expected and intended behaviour and should not be accepted |
would move it to 5.2, btw. if you already trim the email you could lowercase it too in php but I think it doesn't has an performance impact in sql |
I have tested this item 🔴 unsuccessfully on 95be583 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
I have tested this item ✅ successfully on 95be583
|
@crommie I can confirm that Firefox is not accepting email address with leading space, but there is a clear error message |
Email was sent before and after applying patch - in theory, because I tested on a PBF server site that didn't send emails at all. So maybe the unsuccessful test should be removed. |
mark "not tested" at issue trackerand "submit test result". |
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
Yayyy, that worked, thanks. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
This pull request has been automatically rebased to 5.3-dev. |
I have tested this item ✅ successfully on 95be583 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
I have tested this item 🔴 unsuccessfully on 95be583 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
With Chrome the problem cannot be reproduced, email is sent - no issue. Patch not needed or already fixed? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
I have tested this item 🔴 unsuccessfully on 95be583 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
@MacJoom Can you please provide the reasons for the test result? |
Without the patch the issue occurs in firefox, in chrome the password reset email is being sent, in firefox I see the message mentioned above. applying the patch doesn't change anything |
See above |
@MacJoom Thanks for the answer. I wasn't sure because of "Patch not needed or already fixed?". |
I have tested this item 🔴 unsuccessfully on 95be583 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
I tested this in Chrome - entering an email with a space at the beginning worked with and without the patch. As for if this is needed or not, I am all for it since I cannot think of any circumstance where a person would intentionally put a space at the beginning of entering an email, so why not just save the frustration of it failing. Also, why not set things to remove a blank space at the end of an email as well, since sometimes double-clicking to select an email for cut and paste might accidentally grab a space that may be after it. Of course it is not needed if a space at the end doesn't break anything. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
I have tested this item 🔴 unsuccessfully on 95be583 I tested this in Chrome - entering an email with a space at the beginning worked with and without the patch. As for if this is needed or not, I am all for it since I cannot think of any circumstance where a person would intentionally put a space at the beginning of entering an email, so why not just save the frustration of it failing. Also, why not set things to remove a blank space at the end of an email as well, since sometimes double-clicking to select an email for cut and paste might accidentally grab a space that may be after it. Of course it is not needed if a space at the end doesn't break anything. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
This pull request has been automatically rebased to 6.0-dev. |
I have tested this item 🔴 unsuccessfully on ae0c40c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42893. |
Pull Request for Issue #42374.
Summary of Changes
When typing in the email adress and accidentally adding a space at the front, the process fails. See the original issue linked above.
I read the original issue and I'm not sure if this is a bug or a feature or if we even want to interfer this way with this, but I decided to create a PR anyway, since it is easier to discuss with code directly instead of hypotheticals.
Testing Instructions
Type in your email adress with a space at the beginning.
Actual result BEFORE applying this Pull Request
Password reset fails.
Expected result AFTER applying this Pull Request
Password reset works.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed