Error handling for common mistakes on Accept Invitation username

Bug #374470 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Shane Hathaway

Bug Description

(This is a nice-to-have, as KARL2 doesn't have this. However, it will cut down the common help desk requests that Nat gets.)

Put in a FormEncode validator for baseforms.username (used on Accept Invitation) to raise invalid with three different messages for:

- Check if the username *ends* in a space (special case, because it is non-visible and hard for people to report problem easily)

- Check if there are any spaces in the username

- Check for any other invalid characters (they will provide us the exact criteria later, for now, exclude anything that would require escaping in HTML)

Revision history for this message
Shane Hathaway (shane-hathawaymix) wrote :

Finished in revision 2736. Note that the validator already ignores any trailing spaces, so we don't need to provide an error message for that case.

Changed in karl3:
status: New → Fix Committed
Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.