bounswe / bounswe2017group5

Interestr - Build your own interest-based community
MIT License
6 stars 3 forks source link

Registering with an already used email address should not be allowed #150

Closed Morgazipa closed 6 years ago

Morgazipa commented 6 years ago

About

As things stand, a new user can register with an already used email address. Considering that we allow sign in with email as an option, this should really be forbidden.

Steps to reproduce the issue

  1. First try to register with username "xxx" and email "xxx@example.com"
  2. Log out
  3. Try to register with username "xxx2" and email "xxx@example.com"

Instead of being correctly confronted with an error message, the user is successfully logged in.

murat0431 commented 6 years ago

Yes you are right. We should not allow this to happen. Tonight I will try to find a solution for the issue.

murat0431 commented 6 years ago

@Morgazipa I found a solution and I changed the code in the branch "murat_test" Can you check my latest commit about unique email and let me know if there is a problem about it? Also test it with same mail :)

Morgazipa commented 6 years ago

Since the branch was merged, I am closing this.(This issue is no longer relevant.)