When a user is registering for Embedathon, we want to capture their NITK EDU Email address only if they are from NITK. This helps us verify their year and their college.
Proposal
If a user enables the checkbox for is NITK, a custom validation pattern must be applied to the email field. The pattern will be:
[A-Za-z0-9._%+-]+@nitk\.edu\.in
The validation text should also indicate that the NITK EDU ID needs to be provided.
Changes will have to be made in the embedathon/templates/embedathon/register.html file.
Use case
When a user is registering for Embedathon, we want to capture their NITK EDU Email address only if they are from NITK. This helps us verify their year and their college.
Proposal
If a user enables the checkbox for is NITK, a custom validation pattern must be applied to the email field. The pattern will be:
[A-Za-z0-9._%+-]+@nitk\.edu\.in
The validation text should also indicate that the NITK EDU ID needs to be provided.Changes will have to be made in the
embedathon/templates/embedathon/register.html
file.