summaryrefslogtreecommitdiffstats
path: root/core/views/user_registration.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-22 23:15:17 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-22 23:15:17 +0000
commitf842dab12a8bd807a0bb61a6eb35600b789564b0 (patch)
tree7d9176500216fe945dd946f8c9cca976709f117a /core/views/user_registration.py
parent173ee2348fd8d6b4f799ac606b98f6d0da8f6935 (diff)
downloadtroggle-f842dab12a8bd807a0bb61a6eb35600b789564b0.tar.gz
troggle-f842dab12a8bd807a0bb61a6eb35600b789564b0.tar.bz2
troggle-f842dab12a8bd807a0bb61a6eb35600b789564b0.zip
bugfix
Diffstat (limited to 'core/views/user_registration.py')
-rw-r--r--core/views/user_registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/user_registration.py b/core/views/user_registration.py
index 1f8e47f..82381ad 100644
--- a/core/views/user_registration.py
+++ b/core/views/user_registration.py
@@ -62,7 +62,7 @@ def register(request, username=None):
# return render(request, "login/register.html", {"form": form, "unauthorized": True})
# create User in the system and refresh stored encrypted user list and git commit it:
updated_user = register_user(un, email, password=pw, pwhash=None)
- save_users(request, updated_user)
+ save_users(request, updated_user, email)
# to do, login automatically, and redirect to control panel ?
return HttpResponseRedirect("/accounts/login/")
else:
@@ -81,7 +81,7 @@ def register(request, username=None):
-def save_users(request, updated_user):
+def save_users(request, updated_user, email="troggle@exposerver.expo"):
f = get_encryptor()
ru = []