Add Cloudflare Turnstile integration and update UI titles

- Program.cs: Added static fields for Turnstile keys, updated login HTML, added token validation in login and sign-up endpoints, and updated configuration loading.
- admin.html, dash.html: Changed title to "dashboard".
- login.html, signup.html: Added Turnstile script and widget, updated form submission, and added styles/JS for token handling.
- user.html: Adjusted width of .pastes-wrapper.
- Turnstile.cs: Added Turnstile class with VerifyTurnstileToken method for token verification via Cloudflare API.
This commit is contained in:
whoswhip
2024-09-11 18:18:58 -04:00
parent 2889921f12
commit f816836b0f
7 changed files with 280 additions and 162 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
flex-direction: column;
align-items: center;
width: fit-content;
width: 85%;
width: calc(100% - 52px);
max-width: 100%;
background-color: #222222;
border-radius: 5px;