mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Check honeypot/challenge value on activation too
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user