2018-03-20, 05:18 PM
I have just started a Mybb site and with the 50 or so users who have attempted to register, I have run into this issue twice that I know of. I do classify it as a bug although it may be a design bug and not a coding bug. Either way it should be addressed. It is confusing for users and took hours for me to figure out what was going on.
If one enters an email address of the form "[email protected] ", what one sees on the screen is just
[email protected]". if in response to typing that, one gets a message that the email address was invalid, the user sees what appears to be a perfectly valid email address as being rejected. Either the code needs to be corrected to ignore leading/trailing white-space (which is the norm for this type of thing) or the less user-friendly but minimally acceptable solution of having a more descriptive error message that at least echoes the email address that was rejected (eg, "The address you entered, '[email protected] ', is not a valid email address." or even better "The address you entered, '[email protected] ', is not a valid email address. Email addresses may not contain the character ' '.")
If one enters an email address of the form "[email protected] ", what one sees on the screen is just
[email protected]". if in response to typing that, one gets a message that the email address was invalid, the user sees what appears to be a perfectly valid email address as being rejected. Either the code needs to be corrected to ignore leading/trailing white-space (which is the norm for this type of thing) or the less user-friendly but minimally acceptable solution of having a more descriptive error message that at least echoes the email address that was rejected (eg, "The address you entered, '[email protected] ', is not a valid email address." or even better "The address you entered, '[email protected] ', is not a valid email address. Email addresses may not contain the character ' '.")