IEEE-NITK / Embedathon-Website

Django based web application to host IEEE NITK's flagship embedded systems hackathon, Embedathon
2 stars 1 forks source link

Add NITK EDU Email validation in Register form #30

Closed nishant-nayak closed 1 year ago

nishant-nayak commented 1 year ago

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.