Repository navigation
SS-2095 harmonizing verified emails - #618
Open
hamzaimran08 wants to merge 6 commits into
Open
hamzaimran08 wants to merge 6 commits into
hamzaimran08 wants to merge 6 commits into
Conversation
YukiJanse
reviewed
Nov 25, 2026
| with open(settings.STATICFILES_DIRS[0] + "/common/universities.json") as f: | ||
| UNIVERSITIES = json.load(f).get("universities", dict()) | ||
| UNIVERSITIES = [(k, v) for k, v in UNIVERSITIES.items()] | ||
| UNIVERSITIES = list(json.load(f).get("universities", {}).items()) |
Collaborator
There was a problem hiding this comment.
There is no warning or exception if the key "universities" is missing for some reason. It is not a critical issue, since all registrations just require manual approval in that case. However, the problem currently goes unnoticed. It could be a good idea to add a warning for this.
Collaborator
|
Looks good to me. I left a comment but it's up to you. |
YukiJanse
approved these changes
Nov 25, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR relates to SS-2095.
The signup form and backend now use the same email-domain approval rule. A
scilifelab.seuser is no longer asked why they need an account when signing up, and their account is approved after email verification.Approval is explicitly enabled for existing organizations in
universities.json, so adding an affiliation alone cannot change signup approval. Domain matching also rejects lookalikes such asscilifelab.se.example.comwhile continuing to exclude student subdomains.Checklist