Secure public contestant forms by asking the code first
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-08-09 10:09:04 +02:00
parent f9e100b85f
commit 84e3424fcf
6 changed files with 83 additions and 14 deletions

View File

@@ -349,6 +349,7 @@ en:
stopwatch_reset: Reset
stopwatch_start: Start
update: Save modifications
validate: Validate
field: Field
none: No field selected
rank: Rank

View File

@@ -320,6 +320,7 @@ fr:
stopwatch_reset: Ré-initialiser
stopwatch_start: Démarrer
update: Enregistrer les modifications
validate: Valider
field: Champ
none: Aucun champ sélectionné
rank: Rang

View File

@@ -63,6 +63,8 @@ Rails.application.routes.draw do
get "public/:id/offline/:token/completed", to: "contests#offline_completed"
get "public/p/:contestant_id", to: "contestants#get_public_completion"
post "public/p/:contestant_id", to: "contestants#post_public_completion"
get "public/p/:contestant_id/code", to: "contestants#get_public_completion_code"
post "public/p/:contestant_id/code", to: "contestants#post_public_completion_code"
get "public/p/:contestant_id/updated", to: "contestants#public_completion_updated"
direct :public_scoreboard do |contest|