From feba9b78890b44d54966860095a1964d937a455d Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 7 Dec 2025 01:50:54 -0500 Subject: [PATCH] Replace modal with dedicated credentials page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed complex modal implementation and replaced with simple link to dedicated credentials page to eliminate all modal issues. Changes: - Add credentials action to TutorialsController - Remove layout false restriction for credentials - Replace button with simple link_to for Demo Credentials - Remove entire modal HTML structure - Remove all JavaScript for modal initialization - Remove fetch/AJAX complexity The credentials view already existed but was modal-only. Now it's a proper page that users can navigate to directly. Much simpler! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/controllers/tutorials_controller.rb | 4 +- app/views/layouts/shared/_header.html.erb | 73 +---------------------- 2 files changed, 5 insertions(+), 72 deletions(-) diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index ddfdbcc..d6eeaab 100755 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -3,7 +3,9 @@ class TutorialsController < ApplicationController skip_before_action :has_info skip_before_action :authenticated - layout false, only: [:credentials] + def credentials + # Render credentials page with layout + end # VULNERABILITY: Regular Expression Denial of Service (ReDoS) # This endpoint demonstrates how malicious input can cause catastrophic backtracking diff --git a/app/views/layouts/shared/_header.html.erb b/app/views/layouts/shared/_header.html.erb index 08ab102..ae557c6 100755 --- a/app/views/layouts/shared/_header.html.erb +++ b/app/views/layouts/shared/_header.html.erb @@ -81,9 +81,9 @@
- + <% end %> <%= button_to "https://github.com/OWASP/railsgoat/wiki", { method: "get", @@ -112,73 +112,4 @@
- - - - - <% end %>