OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Disable turbo in authorize and login, so that CSP doesn't interfere with logins
Oliver Günther1e8754e5449c
diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erbindex 04b2e0d9d50..7ae03893f00 100644--- a/app/views/account/_password_login_form.html.erb+++ b/app/views/account/_password_login_form.html.erb@@ -27,7 +27,12 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= styled_form_tag({action: "login"}, autocomplete: 'off', class: '-wide-labels user-login--form') do %>+<%= styled_form_tag(+ {action: "login"},+ autocomplete: 'off',+ class: '-wide-labels user-login--form',+ data: { turbo: false } # allow redirects without turbo+ ) do %><%= back_url_hidden_field_tag %><div class="form--field -required">diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erbindex 4b9ec3090f7..3ba1abe4cfb 100644--- a/app/views/doorkeeper/authorizations/new.html.erb+++ b/app/views/doorkeeper/authorizations/new.html.erb@@ -26,7 +26,7 @@<% end %><div class="actions">- <%= form_tag oauth_authorization_path, method: :post do %>+ <%= form_tag oauth_authorization_path, method: :post, data: { turbo: false } do %><%= hidden_field_tag :client_id, @pre_auth.client.uid %><%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %><%= hidden_field_tag :state, @pre_auth.state %>@@ -37,7 +37,7 @@<%= submit_tag t('oauth.authorization_dialog.authorize'), class: "button -primary -expand" %><% end %><br/>- <%= form_tag oauth_authorization_path, method: :delete do %>+ <%= form_tag oauth_authorization_path, method: :delete, data: { turbo: false } do %><%= hidden_field_tag :client_id, @pre_auth.client.uid %><%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %><%= hidden_field_tag :state, @pre_auth.state %>