2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 06:17:27 +00:00

Signup now saves list for bierbook & commits chnages

This commit is contained in:
2025-01-26 14:12:19 +00:00
parent 3ad75d4439
commit 288ce80e07
2 changed files with 40 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ Passwords are only ever stored as hashes using the standard Django functions.
todo = """
- Not fully tested, needs experience
- Need to write to BierBook for signups
- Need to check/register with lists.wookware.org for email
"""
USERS_FILE = "users.json"
@@ -74,6 +78,11 @@ def get_encryptor():
def load_users():
"""These are the previously registered users of the troggle system.
It loads then from JSON permanent storage into the database.
It does allow unencrypted emails in the import, if labelled as such, but only
stores encrypted emails.
It refreshes the JSON every time this functionis called, to allow
for password rotation in the future.
"""
PARSER_USERS = "_users"
DataIssue.objects.filter(parser=PARSER_USERS).delete()