Missing form error for duplicate email address #1956
Labels
[C] Backend
Focuses on backend implementation
[P] Major
Major priority
[S] Very small
This issue should require only very small changes.
[T] Bug
This is a bug. We don't like it. Please get rid of it.
When changing a user's email address to an address that does not yet exist, but results in an existing address after applying the replacements in
evaluation.tools.clean_email
, an internal server error is thrown.staff.forms.clean_email
should callevaluation.tools.clean_email
to prevent this.Test case:
INSTITUTION_EMAIL_REPLACEMENTS
definition in the settings toINSTITUTION_EMAIL_REPLACEMENTS: List[Tuple[str, str]] = [("institution.example.com", "institution.com")]
oma.abner@institution.com
oma.abner@institution.example.com
The text was updated successfully, but these errors were encountered: