Skip to content

Competition Whitelist Emails feature

Placeholder Ihsan Ullah requested to merge whitelist into develop

@ mention of reviewers`

@Didayolo`

A brief description of the purpose of the changes contained in this PR.

Now, users can add a list of emails to their competition named Whitelist Emails. If this competition is not open i.e. participants are approved by an organizer, then any user whose email is added in whitelist_emails will not require an approval i.e. on register button click, this user will be approved automatically.

Process

Add whitelist emails list

Users can add the whitelist emails list here: Competition -> Edit -> Participation -> Scroll down to white List -> Follow the written instructions

Screenshot 2023-11-12 at 9 17 24 PM

Error handling

If a user enters wrong emails, emails are validated and errors are shown Screenshot 2023-11-12 at 9 18 46 PM

How to test this feature

  1. Add 1 email addresses to the white list like the way described above
  2. Make sure to disable auto approve participants
Screenshot 2023-11-12 at 9 19 49 PM
  1. Login with the email added in the whitelist, go to the competition registration page and click register, you will see that you are auto approved without the need of an admin to approve you.

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

Merge request reports

Loading