Compare commits
3 Commits
bf38e01c49
...
bbbb3978b9
| Author | SHA1 | Date | |
|---|---|---|---|
| bbbb3978b9 | |||
| 5e75767f92 | |||
| 2f8c8f0829 |
@@ -20,7 +20,7 @@ jobs:
|
||||
SERVER_URL="${{ github.server_url }}"
|
||||
SERVER_NO_PROTO="${SERVER_URL#http://}"
|
||||
SERVER_NO_PROTO="${SERVER_NO_PROTO#https://}"
|
||||
git clone --depth 1 "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git clone "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Run Maven Tests
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
SERVER_URL="${{ github.server_url }}"
|
||||
SERVER_NO_PROTO="${SERVER_URL#http://}"
|
||||
SERVER_NO_PROTO="${SERVER_NO_PROTO#https://}"
|
||||
git clone --depth 1 "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git clone "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Deploy with Docker Compose
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
SERVER_URL="${{ github.server_url }}"
|
||||
SERVER_NO_PROTO="${SERVER_URL#http://}"
|
||||
SERVER_NO_PROTO="${SERVER_NO_PROTO#https://}"
|
||||
git clone --depth 1 "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git clone "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Run Maven Tests
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
SERVER_URL="${{ github.server_url }}"
|
||||
SERVER_NO_PROTO="${SERVER_URL#http://}"
|
||||
SERVER_NO_PROTO="${SERVER_NO_PROTO#https://}"
|
||||
git clone --depth 1 "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git clone "https://oauth2:${{ secrets.GITHUB_TOKEN }}@${SERVER_NO_PROTO}/${{ github.repository }}.git" .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Deploy with Docker Compose
|
||||
|
||||
+4
@@ -34,8 +34,12 @@ public class PublicInscriptionController {
|
||||
this.saisonRepository = saisonRepository;
|
||||
}
|
||||
|
||||
@Value("${captcha.sitekey:1x00000000000000000000AA}")
|
||||
private String captchaSiteKey;
|
||||
|
||||
@GetMapping("/demarrer")
|
||||
public String showDemarrer(Model model) {
|
||||
model.addAttribute("captchaSiteKey", captchaSiteKey);
|
||||
Saison activeSaison = saisonRepository.findByEstActiveTrue().orElse(null);
|
||||
if (activeSaison == null || !activeSaison.getInscriptionsOuvertes()) {
|
||||
model.addAttribute("inscriptionsFermees", true);
|
||||
|
||||
@@ -30,13 +30,15 @@
|
||||
Les inscriptions ne sont pas ouvertes pour le moment, veuillez contacter un responsable du club.
|
||||
</div>
|
||||
|
||||
<form th:unless="${inscriptionsFermees}" th:action="@{/inscription-public/demarrer}" method="post"
|
||||
class="flex flex-col items-center">
|
||||
<!-- Remplacer par la vraie clé de site Cloudflare Turnstile -->
|
||||
<div class="cf-turnstile mb-6" data-sitekey="1x00000000000000000000AA"></div>
|
||||
<p th:unless="${inscriptionsFermees}" class="text-gray-600 mb-8 leading-relaxed">
|
||||
Afin de sécuriser le processus et d'éviter les soumissions automatisées (robots),
|
||||
nous vous demandons de bien vouloir valider le test de sécurité ci-dessous avant de continuer.
|
||||
</p>
|
||||
|
||||
<button type="submit"
|
||||
class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-lg transition-colors">
|
||||
<form th:unless="${inscriptionsFermees}" th:action="@{/inscription-public/demarrer}" method="post" class="flex flex-col items-center">
|
||||
<div class="cf-turnstile mb-6" th:attr="data-sitekey=${captchaSiteKey}"></div>
|
||||
|
||||
<button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-8 rounded-xl shadow-md hover:shadow-lg transition-all duration-200 transform hover:-translate-y-0.5">
|
||||
Accéder au formulaire
|
||||
</button>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@ services:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: always
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
@@ -21,6 +22,7 @@ services:
|
||||
- "5050:80"
|
||||
depends_on:
|
||||
- db
|
||||
restart: always
|
||||
|
||||
app:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user