Skip to content

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

[36720] Disable login button after submit (#9254)

Oliver Günther2f090955247e
diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb
index af6344c3646..9efd68ec1b3 100644
--- a/app/views/account/_password_login_form.html.erb
+++ b/app/views/account/_password_login_form.html.erb
@@ -55,7 +55,10 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
<% end %>
- <input type="submit" name="login" value="<%=t(:button_login)%>" class="button -highlight" />
+ <%= submit_tag t(:button_login),
+ name: :login,
+ class: 'button -highlight',
+ data: { disable_with: t(:label_loading) } %>
<div class="login-options-container">
<div class="login-links">