IntegrityError when registering with existing email address

Issue #2 resolved
Briehan Lombaard created an issue

When I try to register with an email address that already exists I get the following IntegrityError: column email is not unique. I'm assuming we're just getting the default database error which we're not handling at the moment.

To fix this we can add a clean_email function on the UserForm that does a lookup for the given email address and then raises a ValidatonError with the appropriate error message if it already exists.

Comments (1)

  1. Log in to comment