mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
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.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="container-wrapper">
|
||||
<div class="paste-container">
|
||||
<h1 id="paste-title" title="{pastetitle}">{pastetitle}</h1>
|
||||
<h1 id="paste-title" title="{pastetitleattribute}">{pastetitle}</h1>
|
||||
<h3 class="uploader-text">{username} <a id="creationdate">{creationdate}</a> {pastesize}</h3>
|
||||
<div class="paste-wrapper">
|
||||
<p>{content}</p>
|
||||
|
||||
Reference in New Issue
Block a user