From 0bf1e4ee2d2703f6ef4af51688ca8973ac42a540 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 May 2017 09:32:53 +0000 Subject: [PATCH] Render register page on all non-POST requests to account#register (#25653). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16555 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/account_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index fd5c48d59..ea1eea13a 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -131,7 +131,7 @@ class AccountController < ApplicationController # User self-registration def register (redirect_to(home_url); return) unless Setting.self_registration? || session[:auth_source_registration] - if request.get? + if !request.post? session[:auth_source_registration] = nil @user = User.new(:language => current_language.to_s) else