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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user