plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Implement email verification for users

Open Radhikadua123 opened this issue 8 years ago • 16 comments

Right now we don't have any kind of email verification. User can register using any email, user can change his/her email and then just use the account. He/she won't have to confirm their emails to do any actions. This can exploited by users for spamming too.

So, this is parent issue describing all the smaller bugs which needs to be fixed to successfully add email verification system. This implementation corresponds to my second approach here: https://github.com/publiclab/plots2/issues/3522#issuecomment-433109387

  • [x] Implement helper function to encrypt/decrypt data
  • [x] Implement helper function to generate and validate unique token for user #3848
  • [x] Add is_verified to user model with default value False #3849
  • [x] Send verification email to the user on signup #3850
  • [ ] Flash message and button to send email again if email not verified #3851
  • [x] Implement helper function has_email_verified #3852
  • [ ] Disable write operations on pages if user not verified #3853

Optional:

  • [ ] Add redis database to docker and connect it with application
  • [ ] Implement expiry for the validation link

@jywarren Should I create separate issues for each of them or this much breaking is enough and easy to understand ?

Radhikadua123 avatar Oct 26 '18 15:10 Radhikadua123

Thanks for opening your first issue! This space is protected by our Code of Conduct - and we're here to help. Please follow the issue template to help us help you 👍🎉😄 If you have screenshots or a gif to share demonstrating the issue, that's really helpful! 📸

welcome[bot] avatar Oct 26 '18 15:10 welcome[bot]

this is amazingly well broken up! Where did you learn this workflow -- it's one we've tried to be good at, but it's tough! See our posts at https://publiclab.org/software-outreach

I think you can do them all yourself in this issue if you want. But if you'd like to prepare one or two for others to get involved in, breaking them out into well-documented distinct issues can help. But it's up to you!

Thank you!

jywarren avatar Oct 26 '18 22:10 jywarren

this is amazingly well broken up! Where did you learn this workflow -- it's one we've tried to be good at, but it's tough!

Thanks a lot! @jywarren ^_^ Actually I only know general web development stuff and I thought lot about the way it should be implemented and then tried to split it into smaller tasks. But I'm quite less aware of Ruby on Rails internals. I'm continuously trying to learn more about it from the code base.

See our posts at https://publiclab.org/software-outreach

Sure, I'll check it out.

I think you can do them all yourself in this issue if you want. But if you'd like to prepare one or two for others to get involved in, breaking them out into well-documented distinct issues can help.

Yeah, splitting task into well-documented distinct issues on which others can work easily sounds better idea to me. By this, more people can get involved in the project.

Radhikadua123 avatar Oct 27 '18 12:10 Radhikadua123

👍🏽👍🏽👍🏽

On Sat, Oct 27, 2018, 8:59 AM Radhika Dua <[email protected] wrote:

this is amazingly well broken up! Where did you learn this workflow -- it's one we've tried to be good at, but it's tough!

Thanks a lot! @jywarren https://github.com/jywarren ^_^ Actually I only know general web development stuff and I thought lot about the way it should be implemented and then tried to split it into smaller tasks. But I'm quite less aware of Ruby on Rails internals. I'm continuously trying to learn more about it from the code base.

See our posts at https://publiclab.org/software-outreach

Sure, I'll check it out.

I think you can do them all yourself in this issue if you want. But if you'd like to prepare one or two for others to get involved in, breaking them out into well-documented distinct issues can help.

Yeah, splitting task into well-documented distinct issues on which others can work easily sounds better idea to me. By this, more people can get involved in the project.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3798#issuecomment-433618217, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ-1A_vSvHjaV1r5d2KqIzJqloAFMks5upFiigaJpZM4X8a6Y .

jywarren avatar Oct 27 '18 22:10 jywarren

Could I take this up? :smiley:

shubhangi-chauhan avatar Oct 29 '18 00:10 shubhangi-chauhan

@shubhangi-chauhan Sure, feel free to work on it. I'll add new well documented issues and link them here today.

Radhikadua123 avatar Oct 30 '18 15:10 Radhikadua123

I would like to work on this, if anyone has'nt taken this issue. :)

shubhscoder avatar Oct 30 '18 17:10 shubhscoder

I have split up this issue into separate issues. Everyone please feel free to take subparts of this issue!

Radhikadua123 avatar Oct 30 '18 19:10 Radhikadua123

@Radhikadua123 can they all be worked on by different people at a different time or one issue does not block the other?

faithngetich avatar Nov 06 '18 17:11 faithngetich

Hi @faithngetich,

Actually lot of them depend on the previous tasks. But initial tasks like Implement helper function to generate and validate unique token for user and Add is_verified to user model with default value False can be done in parallel.

Radhikadua123 avatar Nov 07 '18 02:11 Radhikadua123

Thanks @Radhikadua123

I see they've all been worked on.

faithngetich avatar Nov 07 '18 08:11 faithngetich

@Radhikadua123 really you did a great job in breaking the stuff into chunks.

SidharthBansal avatar Nov 07 '18 18:11 SidharthBansal

Thanks a lot! @SidharthBansal

Radhikadua123 avatar Nov 07 '18 18:11 Radhikadua123

@faithngetich May be you can work on something else ?

In case you need help in search of appropriate task, I can try finding one for you.

Radhikadua123 avatar Nov 07 '18 18:11 Radhikadua123

Something really great going on here. Sorry I missed it. I was going to raise an issue for this but this issue has already been created.

SidharthBansal avatar Dec 18 '18 18:12 SidharthBansal

Thanks @Radhikadua123

SidharthBansal avatar Dec 18 '18 18:12 SidharthBansal