From 44bfec135616ee620c7e010adec4230c8a0fcab0 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Wed, 19 Apr 2017 19:05:39 +0200 Subject: [PATCH] Render register page on all non-POST requests to account#register --- 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 842df6045..c850faf0a 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 -- 2.12.0