2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-01-20 05:14:19 +00:00

need to login as personal user before seeing signup form

This commit is contained in:
2025-01-28 21:09:50 +00:00
parent cf89b1b67f
commit bb4df7d07f

View File

@@ -61,8 +61,14 @@ def signup(request):
if identified_login:
editor = get_git_string(signup_user)
else:
editor = f"troggle <signup_anon@austria.expo>"
return HttpResponseRedirect("/accounts/login/")
people = Person.objects.filter(user=signup_user)
if len(people) == 1:
signup_person = people[0]
else:
return HttpResponseRedirect("/accounts/login")
experience = how_many_previous_expos(signup_person)
if request.method == "POST": # If the form has been submitted...