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

Don't create users if they are not on the authorized users list (fixes #60) #62

Merged
merged 1 commit into from
Feb 7, 2014

Conversation

treygriffith
Copy link
Collaborator

I think the issue in #60 is a couple of things combining - first off, when a user was denied because they were not on the authorized users list, the function didn't return, and instead created the user. This pull request fixes that.

Secondly, I think there is a unique index on the email field - perhaps from a prior iteration - that is causing a dup key problem when trying to create another new user. It looks like @megamattron already fixed that.

@megamattron
Copy link
Member

Yes, this is great, thanks. I was just realizing the DB is filling up with unauthed users. Will merge shortly.

@megamattron megamattron merged commit 0fe7fde into larvalabs:master Feb 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants