Skip to content

Commit

Permalink
Delete user if email isn't confirmable
Browse files Browse the repository at this point in the history
  • Loading branch information
mftaff committed Jan 22, 2018
1 parent 0fdc38e commit 8c957f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/workers/email_confirmation_worker.rb
Expand Up @@ -6,5 +6,7 @@ class EmailConfirmationWorker
def perform(user_id)
user = User.find(user_id)
CustomerMailer.confirmation_email(user).deliver_now
rescue Net::SMTPSyntaxError
user.destroy
end
end

0 comments on commit 8c957f3

Please sign in to comment.