Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User with existing email must not be able to be created #101

Closed
asterite opened this issue Oct 13, 2016 · 4 comments
Closed

User with existing email must not be able to be created #101

asterite opened this issue Oct 13, 2016 · 4 comments

Comments

@asterite
Copy link
Contributor

asterite commented Oct 13, 2016

Steps to reproduce:

  1. Register a user with an email
  2. Logout
  3. Register a user with the same email

Expected: an error saying the email is already taken
Actual: the user is created

@asterite
Copy link
Contributor Author

I tried to fix it but it seems it can't be done unless we fix addict or use another library: trenpixster/addict#85

@fgasperij
Copy link
Contributor

We have an Ecto unique_constraint on the changeset and a unique_index on the table, I suppose that doesn't work because Addict disregards the User model changeset since it has other ways to add validations to it's normal flow.

We have some alternatives to deal with this:

I would wait a couple of weeks if this is not urgent and, if the issue isn't resolved by then, fork it and fix it.

@waj waj modified the milestone: 0.3 (Carob) Nov 18, 2016
@mverzilli
Copy link

Closed via #597

@mmuller
Copy link
Contributor

mmuller commented Feb 23, 2017

Working properly in version b706119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants