Commit Graph
13 Commits
Author SHA1 Message Date
whoswhip 1c73e8caa4 Improve title handling, token retrieval, and logging
## COMMIT MESSAGE GENERATED BY COPILOT

- Initialize and update `title` variable based on `paste.Title`.
- Update HTML template to use `{pastetitleattribute}` and `{pastetitle}`.
- Retrieve `token` from `Authorization` header or `token` cookie.
- Use `token` in `IsLoggedInAsync` and `GetLoggedInUserAsync` methods.
- Add logging for paste deletion, including log file and response.
- Update user type and UUID check in verification process.
- Log paste deletion details: timestamp, paste ID, user info, request.
2024-09-02 13:42:38 -04:00
whoswhip 05cb8f0afc User pages added 2024-08-27 14:13:51 -04:00
whoswhip bca02028d7 Merge branch 'master' of https://github.com/whoswhip/Sharpbin 2024-08-26 05:38:29 -04:00
whoswhip c3ac47171f Admin panel and punishments 2024-08-26 05:30:39 -04:00
whoswhip 79276573bc Signup api, signup and login frontend 2024-08-23 12:26:41 -04:00
whoswhip 017abcfacc Account Creation, Logging, and API URI's changed 2024-08-23 09:49:03 -04:00
whoswhip 59fe4caa4d Commit Message Generated by Copilot
Enhance date handling, error checks, data limits, and rate limiting

- Added `using System.Globalization;` to support date and time formatting.
- Handled empty/null paste titles with defaults and truncation.
- Display paste dates as human-readable time differences.
- Changed rate limiting policy to "fixed-bigger".
- Improved error handling for `/api/create` endpoint.
- Updated `ConvertToBytes` method for clarity.
- Added `GetDifference` method for date comparisons.
- Enforced length limits on input fields in `index.html`.
2024-08-19 04:46:58 -04:00
whoswhip 47aed18919 Improvement to pastes archive, added navigator to the top of each page 2024-08-19 03:45:06 -04:00
whoswhip 7221d99b68 archive page has now been created 2024-08-19 00:35:09 -04:00
whoswhip cc7004d294 Remove unnecessary usings 2024-08-18 23:51:49 -04:00
whoswhip 3be5f90220 Last commit didnt add everything :( 2024-08-18 23:50:58 -04:00
whoswhip 2df77f3659 Error handling for paste pages for if it doesnt exist, visibility to pastes(not implemented yet), Recent pastes(all pastes coming soon except for unlisted/private ofc). 2024-08-18 23:49:47 -04:00
whoswhip d76331b01e Add project files. 2024-08-18 21:55:50 -04:00