Enhance user authentication and paste management

- Updated `AuthController.cs` to include token in `CreateSession` and improved validation for username and email.
- Refactored paste creation logic from `Program.cs` to a new `PasteController.cs`.
- Added email validation method in `HelperService.cs`.
- Introduced `CompressionService.cs` for handling string compression and decompression.
- Improved user experience with autocomplete and spellcheck in HTML forms.
- Enhanced date display in `archive.js` and refactored date formatting in `dash.js`.
- Updated API endpoints in `login.js` and `register.js` to reflect changes.
This commit is contained in:
whoswhip
2025-07-06 22:55:29 -04:00
parent cc0c6a8286
commit 3eb7374a07
16 changed files with 312 additions and 176 deletions
+3 -3
View File
@@ -18,8 +18,8 @@
<body>
<div class="main-container">
<form class="create-form" id="create-form">
<input type="text" name="title" id="title" placeholder="Title" maxlength="500">
<textarea name="content" id="content" placeholder="Content"></textarea>
<input type="text" name="title" id="title" placeholder="Title" maxlength="500" autocomplete="off" spellcheck="false">
<textarea name="content" id="content" placeholder="Content" autocomplete="off" spellcheck="false"></textarea>
<label id="syntax-label">Syntax Highlighting -</label>
<select name="syntax" id="syntax">
<option value="none">None</option>
@@ -52,7 +52,7 @@
<option value="1">Unlisted</option>
<option value="2">Private</option>
</select>
<input type="text" name="password" id="password" placeholder="Password" style="display: none;">
<input type="password" name="password" id="password" placeholder="Password" style="display: none;" autocomplete="off" spellcheck="false">
<button type="submit">Create Paste</button>
</form>
</div>