2 Commits
Author SHA1 Message Date
whoswhip 65ddb4b722 Remove debug prints and refactor notification function
Removed unnecessary console output in Program.cs and Turnstile.cs to clean up logs and avoid exposing sensitive information. Refactored user.html to replace the `notification` function with `createNotification` for improved notification handling.
2024-09-13 11:54:04 -04:00
whoswhip f816836b0f 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.
2024-09-11 18:18:58 -04:00