Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the setting to allow users to login with email addresses or user names is selected, the incoming data is tested with leading and trailing spaces. This leads to confusion when attempting to login and can cause some issues when creating or testing new users because two users could end up with nearly identical username/emails because of the extra spaces. I can't really see a scenario in which the leading or trailing spaces could be useful so I think it is probably best to trim them off.
Comment | File | Size | Author |
---|---|---|---|
#5 | LoginToboggan_Login.png | 27.69 KB | riddhi.addweb |
#5 | LoginToboggan_Leading_spaces.png | 40.16 KB | riddhi.addweb |
#2 | logintoboggan-trim-form-data-2895648.patch | 1.58 KB | lliss |
Comments
Comment #2
lliss CreditAttribution: lliss commentedComment #3
lliss CreditAttribution: lliss commentedComment #4
riddhi.addweb CreditAttribution: riddhi.addweb at AddWeb Solution Pvt. Ltd. commented@lliss, Thanks for the patch, it works well as per the above mentioned requirements, It trails the extra spaces & successfully login us.
PFA results for the mentioned case.
Comment #5
riddhi.addweb CreditAttribution: riddhi.addweb at AddWeb Solution Pvt. Ltd. commentedComment #7
stevecowie CreditAttribution: stevecowie as a volunteer commentedNow in 7.x