mirror of
https://github.com/redmine/redmine.git
synced 2026-03-02 02:21:22 +01:00
Sudo-Mode refinements (#23587).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@15813 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<h2><%= l :label_password_required %></h2>
|
||||
<%= form_tag({}, class: 'tabular', id: 'sudo-form') do %>
|
||||
<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %>
|
||||
|
||||
<%= hidden_field_tag '_method', request.request_method %>
|
||||
<%= hash_to_hidden_fields @sudo_form.original_fields %>
|
||||
|
||||
@@ -90,7 +90,7 @@ module Redmine
|
||||
return true if SudoMode.active?
|
||||
|
||||
if param_names.blank?
|
||||
param_names = params.keys - %w(id action controller sudo_password)
|
||||
param_names = params.keys - %w(id action controller sudo_password _method authenticity_token utf8)
|
||||
end
|
||||
|
||||
process_sudo_form
|
||||
|
||||
Reference in New Issue
Block a user