-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add researcher codes - backend - add ResearchGroup model with 6-digit id code for users to use when signing up - add checkdigit dependency to add checksum to code - add full_data_access flag to users if they should have research access to all data - admin frontend users tab - add reseach_group_id & full_data_access to table - add button to add create a research code for a researcher - frontend - add ResearchCodeInput input which checks the entered code checksum is valid - add optional code input to user signup, remove role selection - make url for signup /signup - add optional code e.g. /signup/123451 to allow researchers to send sign-up links to their users with code pre-filled - add cdigit dependency to validate codes - resolves #185 * remove invalid research code from user upon registration to avoid (unlikely) scenario with unintentional sharing of data * Add test of valid/invalid research codes - requires directly monkeypatching databases used in user.py * ensure SMTPMock test fixture always starts with last_message = None
- Loading branch information
Showing
22 changed files
with
419 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.