Skip to content

Conversation

@cristina-stonepedraza
Copy link
Collaborator

@cristina-stonepedraza cristina-stonepedraza commented Dec 6, 2025

Addresses microbiomedata/issues#1106

  1. Make the submitter email required in the Submission Portal form
  • Added a new field for this in the form (StudyForm.vue), and made it required
  • Added appropriate definitions for new field (index.ts, definitions.ts)
  • The field is auto-populated using the email saved in the logged-in user's details (saved in db)
  1. Re-worked logic in auth.py
  • Re-ordered email check (now checks if email is missing first, then checks for ORCID email instead of the other way around)
  • Changed API return from XML to JSON
  1. Added modal to get the user's email if it is still missing after login (this is required to create a portal submission)
  • Created a new file at /web/src/views/SubmissionPortal/Components/UserEmailModal.vue
  • Added check (for user login and saved email) and modal call to App.vue
  • Expected behavior: After login, a check is made from App.vue to see if the user is logged in and if they have an email saved. If not, then the modal will pop up, and the user will need to enter an email to close it.

@cristina-stonepedraza cristina-stonepedraza marked this pull request as ready for review December 11, 2025 18:43
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