Closed Bug 622148 Opened 14 years ago Closed 14 years ago

Add FacebookURLField and TwitterURLField with validation

Categories

(support.mozilla.org :: Users and Groups, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

Details

If we subclass URLField and add extra validation that makes sure the URL is from the right domain, our new profiles will actually require those fields be filled in correctly.

FacebookURLField(URLField):
    """Requires the domain be Facebook."""

TwitterURLField(URLField):
    """Requires the domain be Twitter."""

We could also add widgets with HTML5 Forms patterns to do client-side validation.
(In reply to comment #0)
> We could also add widgets with HTML5 Forms patterns to do client-side
> validation.

Actually, we don't need to add widget classes, we can just add custom attributes.
Assignee: nobody → james
Fixed! https://github.com/jsocol/kitsune/commit/7951ad0

Ignore the implementation suggestions in the first two comments.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.