diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a794139ddb9..5a078075b93 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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 diff --git a/app/views/layouts/no_js.html.erb b/app/views/layouts/no_js.html.erb index 3d6dc48aca2..c796b08f4f9 100644 --- a/app/views/layouts/no_js.html.erb +++ b/app/views/layouts/no_js.html.erb @@ -6,6 +6,7 @@ <%= render partial: "layouts/head" %> <%= raw SiteContent.content_for(:head) %> + <%= yield(:no_js_head) %>
<%- unless customization_disabled? %> diff --git a/app/views/users/activate_account.html.erb b/app/views/users/activate_account.html.erb index a5380bcaafa..2f9cca159ba 100644 --- a/app/views/users/activate_account.html.erb +++ b/app/views/users/activate_account.html.erb @@ -1,26 +1,40 @@