Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

Validate email addresses on server side #359

Open adbharadwaj opened 6 years ago

adbharadwaj commented 6 years ago

Currently, we only validate the email addresses on the client side. We would want to validate email values before we save them in the database. If the email address is not valid, we would have to generate a proper error message for the user.

Refer to this PR to find out how we validate email addresses on client side.

bruce-wayne99 commented 6 years ago

I would like to work on this issue.

adbharadwaj commented 6 years ago

@bruce-wayne99 👍

Let us know if you have any questions.

bruce-wayne99 commented 6 years ago

@adbharadwaj I think there are two ways to handle this issue. We can use built-in email validators of django (or) Write our own util function using regular expressions for the server side validation.

tmmurali commented 6 years ago

@abharadwaj, I thought that the consensus we had reached in our internal discussions in our group at Virginia Tech was to send email to the user in order to validate the address, at least at the point of account creation or email update. Am I missing something?

On Sun, Feb 18, 2018 at 6:33 PM, Subramanyam Makam <notifications@github.com

wrote:

@adbharadwaj https://github.com/adbharadwaj I think there are two ways to handle this issue. We can use built-in email validators of django (or) Write our own util function using regular expressions for the server side validation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359#issuecomment-366558494, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUIi-cLkBLemtJjuCs2PutQ3RlhWSks5tWLNMgaJpZM4SI3kb .

adbharadwaj commented 6 years ago

Oh yeah that's true. I have created a separate issue for that.

On Feb 18, 2018 6:46 PM, "T. M. Murali" notifications@github.com wrote:

@abharadwaj, I thought that the consensus we had reached in our internal discussions in our group at Virginia Tech was to send email to the user in order to validate the address, at least at the point of account creation or email update. Am I missing something?

On Sun, Feb 18, 2018 at 6:33 PM, Subramanyam Makam < notifications@github.com

wrote:

@adbharadwaj https://github.com/adbharadwaj I think there are two ways to handle this issue. We can use built-in email validators of django (or) Write our own util function using regular expressions for the server side validation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359# issuecomment-366558494, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUIi- cLkBLemtJjuCs2PutQ3RlhWSks5tWLNMgaJpZM4SI3kb .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359#issuecomment-366559317, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUeB25ibSc29ndd1d9-vo75NnkK4Nhnks5tWLZCgaJpZM4SI3kb .

tmmurali commented 6 years ago

Then close this issue and refer to that one?

On Sun, Feb 18, 2018 at 6:53 PM, Aditya Bharadwaj notifications@github.com wrote:

Oh yeah that's true. I have created a separate issue for that.

On Feb 18, 2018 6:46 PM, "T. M. Murali" notifications@github.com wrote:

@abharadwaj, I thought that the consensus we had reached in our internal discussions in our group at Virginia Tech was to send email to the user in order to validate the address, at least at the point of account creation or email update. Am I missing something?

On Sun, Feb 18, 2018 at 6:33 PM, Subramanyam Makam < notifications@github.com

wrote:

@adbharadwaj https://github.com/adbharadwaj I think there are two ways to handle this issue. We can use built-in email validators of django (or) Write our own util function using regular expressions for the server side validation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359# issuecomment-366558494, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUIi- cLkBLemtJjuCs2PutQ3RlhWSks5tWLNMgaJpZM4SI3kb .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359# issuecomment-366559317, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUeB25ibSc29ndd1d9- vo75NnkK4Nhnks5tWLZCgaJpZM4SI3kb .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/359#issuecomment-366559746, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkWUGy7-P3DlURCC_MJovVuD3SBR_icks5tWLfngaJpZM4SI3kb .

adbharadwaj commented 6 years ago

Oh no! I have created two separate issues for server-side email validation which requires two parts. This issue is one of them.

bruce-wayne99 commented 6 years ago

@adbharadwaj I have suggested two methods to solve this issue. Please consider them and suggest me if this issue can be solved in a better way. Thanks!