Check honeypot/challenge value on activation too

This commit is contained in:
Robin Ward
2014-07-15 14:07:19 -04:00
parent 3eb0afe29b
commit 4f416bf6ce
4 changed files with 37 additions and 13 deletions

View File

@ -283,6 +283,7 @@ class UsersController < ApplicationController
end
def perform_account_activation
raise Discourse::InvalidAccess.new if honeypot_or_challenge_fails?(params)
if @user = EmailToken.confirm(params[:token])
# Log in the user unless they need to be approved