mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 13:18:15 +00:00
Loads and resaves same file. Round trip working.
This commit is contained in:
@@ -5,7 +5,7 @@ from django.core.exceptions import ValidationError
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
from troggle.core.models.troggle import DataIssue, Person
|
||||
from troggle.parsers.users import register_user
|
||||
from troggle.parsers.users import register_user, save_users
|
||||
|
||||
"""
|
||||
This is the new individual user login registration, instead of everyone signing
|
||||
@@ -32,8 +32,10 @@ def register(request, username=None):
|
||||
if current_user != form_user:
|
||||
print(f"## UNAUTHORIZED Password reset ## {current_user} {form_user}")
|
||||
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.
|
||||
register_user(un, email, password=pw, pwhash=None)
|
||||
# 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()
|
||||
# to do, login automatically, and redirect to control panel ?
|
||||
return HttpResponseRedirect("/accounts/login/")
|
||||
else:
|
||||
if current_user:
|
||||
|
||||
Reference in New Issue
Block a user