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:
whoswhip
2024-09-02 13:42:38 -04:00
parent 05cb8f0afc
commit 1c73e8caa4
2 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -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>