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

Bulk invitations sent to already confirmed users #41

Open
tolomaus opened this issue Jun 6, 2013 · 0 comments
Open

Bulk invitations sent to already confirmed users #41

tolomaus opened this issue Jun 6, 2013 · 0 comments

Comments

@tolomaus
Copy link

tolomaus commented Jun 6, 2013

The problem is that the confirmation_token is emptied when the user confirms and the bulk_invite filters on empty confirmation_tokens only:

users = User.where(:confirmation_token => nil).order(:created_at).limit(params[:quantity])

Simply adding :encrypted_password => nil to the where cluase solves the problem:

users = User.where(:confirmation_token => nil, :encrypted_password => nil).order(:created_at).limit(params[:quantity])
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

No branches or pull requests

1 participant