0001-Render-register-page-on-all-non-POST-requests-to-acc.patch

Holger Just, 2017-04-19 19:06

Download (935 Bytes)

View differences:

app/controllers/account_controller.rb
131 131
  # User self-registration
132 132
  def register
133 133
    (redirect_to(home_url); return) unless Setting.self_registration? || session[:auth_source_registration]
134
    if request.get?
134
    if !request.post?
135 135
      session[:auth_source_registration] = nil
136 136
      @user = User.new(:language => current_language.to_s)
137 137
    else
138
-