Competition Whitelist Emails feature
@ 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
Error handling
If a user enters wrong emails, emails are validated and errors are shown
How to test this feature
- Add 1 email addresses to the white list like the way described above
- Make sure to disable auto approve participants
- 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