2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 18:57:13 +00:00

fix error msg

This commit is contained in:
2025-02-07 23:36:39 +00:00
parent 06b81ea825
commit a357f4cf5b

View File

@@ -355,7 +355,7 @@ class register_form(forms.Form): # not a model-form, just a form-form
users = User.objects.filter(email=email)
if len(users) > 1:
raise ValidationError(
f"Duplicate email address. Another registered user {users} is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
f"Duplicate email address. Another registered user {users[0]} is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
)
if len(users) == 1:
if users[0].username != un: