mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 07:27:15 +00:00
duplicate email prevention
This commit is contained in:
@@ -198,15 +198,12 @@ class newregister_form(forms.Form): # not a model-form, just a form-form
|
|||||||
cleaned_data = super().clean()
|
cleaned_data = super().clean()
|
||||||
un = cleaned_data.get("fullname")
|
un = cleaned_data.get("fullname")
|
||||||
|
|
||||||
# expoers = Person.objects.filter(slug=un)
|
email = cleaned_data.get("email")
|
||||||
# if len(expoers) == 0:
|
users = User.objects.filter(email=email)
|
||||||
# raise ValidationError(
|
if len(users) != 0:
|
||||||
# "Sorry, we are not registering new people yet. Try again next week. We are still getting the bugs out of this.."
|
raise ValidationError(
|
||||||
# )
|
"Duplicate email address. Another registered user is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
|
||||||
# if len(expoers) != 1:
|
)
|
||||||
# raise ValidationError(
|
|
||||||
# "Sorry, that troggle identifier has duplicates. Contact a nerd on the Nerd email list, or (better) the Matrix website chat."
|
|
||||||
# )
|
|
||||||
|
|
||||||
class register_form(forms.Form): # not a model-form, just a form-form
|
class register_form(forms.Form): # not a model-form, just a form-form
|
||||||
username = forms.CharField(strip=True, required=True,
|
username = forms.CharField(strip=True, required=True,
|
||||||
@@ -258,4 +255,9 @@ class register_form(forms.Form): # not a model-form, just a form-form
|
|||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
"Sorry, that troggle identifier has duplicates. Contact a nerd on the Nerd email list, or (better) the Matrix website chat."
|
"Sorry, that troggle identifier has duplicates. Contact a nerd on the Nerd email list, or (better) the Matrix website chat."
|
||||||
)
|
)
|
||||||
|
email = cleaned_data.get("email")
|
||||||
|
users = User.objects.filter(email=email)
|
||||||
|
if len(users) != 0:
|
||||||
|
raise ValidationError(
|
||||||
|
"Duplicate email address. Another registered user is already using this email address. Email addresses must be unique as that is how we reset forgotten passwords."
|
||||||
|
)
|
||||||
@@ -138,11 +138,9 @@ where it is accessible only to the database administrators. There is no troggle
|
|||||||
which publishes your email address.
|
which publishes your email address.
|
||||||
For permanent storage all email addresses are encrypted. Your real name and troggle
|
For permanent storage all email addresses are encrypted. Your real name and troggle
|
||||||
username is public however, and we do not have anonymous people attending expo.
|
username is public however, and we do not have anonymous people attending expo.
|
||||||
<p>The password we
|
<p>
|
||||||
{% if newuser %}will be{% else %}are{%endif %}
|
The password we {% if newuser %}will be{% else %}are{%endif %} asking for is solely for logging into troggle.
|
||||||
asking for is used only to log on to troggle to keep track of
|
The troggle login is used to track who is editing the current and past expo data, website content, and historic survey data, as well as for accessing the expo Kanban software. It is not the same as the password you use to access your email
|
||||||
who is editing the current expo records, website content, historic survey data and
|
|
||||||
when using the expo kanban software. It is not the same as the password to access your email
|
|
||||||
with your email provider
|
with your email provider
|
||||||
and it is not the same as the password you use to interact with the expo
|
and it is not the same as the password you use to interact with the expo
|
||||||
<a href="https://lists.wookware.org/cgi-bin/mailman/roster/expo">email list</a>.
|
<a href="https://lists.wookware.org/cgi-bin/mailman/roster/expo">email list</a>.
|
||||||
|
|||||||
Reference in New Issue
Block a user