Memberships

This commit is contained in:
2026-10-23 14:25:25 -04:00
parent 0692ec0b54
commit fa1568b0bd
4 changed files with 62 additions and 26 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class RegistrationForm(forms.Form):
class PasswordForm(forms.Form):
password = forms.CharField(max_length=1024, widget=forms.PasswordInput(attrs={"autocomplete": "new-password"}), label="Password", help_text="At least 12 characters. Stored only in OpenLDAP, never on this website.")
password = forms.CharField(max_length=1024, widget=forms.PasswordInput(attrs={"autocomplete": "new-password"}), label="Password", help_text="Use at least 12 characters. Choose a strong, unique password for your eom.dev account.")
confirm_password = forms.CharField(max_length=1024, widget=forms.PasswordInput(attrs={"autocomplete": "new-password"}), label="Confirm password")
def clean_password(self):
+4 -4
View File
@@ -91,7 +91,7 @@ def register(request):
Registration.objects.filter(pk=digest).delete()
logger.error("Registration email failed kind=%s", type(exc).__name__)
return page(request, title="Email unavailable", message="Account email could not be sent. Please try again later.")
return page(request, title="Check your inbox", message="Use the verification link to choose a password and create your free account. If you already have an account, sign in through Dex instead.")
return page(request, title="Check your inbox", message="Follow the confirmation link in your email to choose a password and finish creating your free eom.dev account. If you already have an account, sign in instead.")
return page(request, title="Create your free account", form=form, submit="Send verification email", registration=True)
@@ -129,12 +129,12 @@ def finish_registration(request):
remember_groups(account)
Registration.objects.filter(uid=registration.uid).delete()
request.session.pop("registration_hash", None)
return page(request, title="Account created", message="Your free account is now in OpenLDAP. Sign in through Dex to manage membership.")
return page(request, title="Account created", message="Your free eom.dev account is ready. Sign in to explore the community and its services, or choose an optional paid membership for additional benefits.")
except ValueError:
form.add_error(None, "An account with those details may already exist. Sign in through Dex or contact the administrator.")
form.add_error(None, "An account with those details may already exist. Try signing in or contact us for help.")
except Exception as exc:
logger.error("Account provisioning failed kind=%s", type(exc).__name__)
form.add_error(None, "Account creation could not finish. Try Dex sign-in first, or contact the administrator before retrying.")
form.add_error(None, "Account creation could not finish. Try signing in first, or contact us for help before retrying.")
return page(request, title="Choose your password", form=form, submit="Create free account")