Skip to content

SS-2095 harmonizing verified emails - #618

Open
hamzaimran08 wants to merge 6 commits into
developfrom
SS-2095-harmonizing-verified-emails
Open

hamzaimran08 wants to merge 6 commits into
developfrom
SS-2095-harmonizing-verified-emails

Conversation

@hamzaimran08

Copy link
Copy Markdown
Collaborator

Description

This PR relates to SS-2095.

The signup form and backend now use the same email-domain approval rule. A scilifelab.se user 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 as scilifelab.se.example.com while continuing to exclude student subdomains.

Checklist

  • This pull request is against develop branch (not applicable for hotfixes)
  • I have included a link to the issue on GitHub or JIRA (if any)
  • I have included migration files (if there are changes to the model classes)
  • I have added or updated unit and end2end tests or a manual test case to complement my changes
  • I have ran unit and end2end tests
  • I have considered accessibility for UI changes and reviewed pre-commit/Pa11y results or documented a manual check
  • I have updated the related documentation (if necessary)
  • I have added a reviewer for this pull request
  • I have added myself as an author for this pull request
  • In the case I have modified settings.py, then I have also updated the studio-settings-configmap.yaml file in serve-charts
  • In case your changes are large enough, did you deploy your changes to develop instance?

@hamzaimran08
hamzaimran08 requested a review from a team as a code owner November 24, 2026 11:03
@hamzaimran08 hamzaimran08 self-assigned this Nov 24, 2026
Comment thread common/forms.py
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())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@YukiJanse

Copy link
Copy Markdown
Collaborator

Looks good to me. I left a comment but it's up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants