Browse Source
Quality of life improvements and bug squashing
Quality of life improvements and bug squashing
* Add registration_code as a field in the DB for registered users * Display the code for the list of registered users on the admin page * Add a utility method to check if a registration code has uses remaining * Update models and sql for the new field * Add form validators for registration code and username * Registration code must exist, not expired, and have usages remaining to be accepted * Username must not exist as a registered user alreadymaster
Drew Short
6 years ago
7 changed files with 80 additions and 20 deletions
-
24app.py
-
24db.py
-
31forms.py
-
12models.py
-
1schema.sql
-
6templates/admin.html
-
2templates/register.html
Write
Preview
Loading…
Cancel
Save
Reference in new issue