Enhance security, add admin features, and improve UX

Removed unused cryptography directive and switched to BCrypt for hashing IPs and tokens with a configurable salt. Updated file paths for cross-platform compatibility. Added rate limiting to routes and new admin API endpoints for user management. Improved `config.json` handling and added random password generation.

Enhanced `admin.html` with search debounce, infinite scrolling, and updated CSS. Added password change functionality and notifications to `user.html`. Improved error handling in `archives.html` and refactored `index.html` for better readability. Corrected password character count in `signup.html`.
This commit is contained in:
whoswhip
2024-09-07 18:57:18 -04:00
parent f02e68b1d3
commit 071434efc9
9 changed files with 860 additions and 185 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
<label id="characterCount" for="characterCount" class="ccounter">0/20</label>
<label for="passwordTitle" class="label" id="margin-top">Password</label>
<input type="password" id="passwordInput" class="textinput" name="pasteTitle" required maxlength="50" minlength="8">
<label id="passcharacterCount" for="characterCount" class="ccounter">0/20</label>
<label id="passcharacterCount" for="characterCount" class="ccounter">0/50</label>
<button type="submit" class="button" id="button-margin-top">Sign-up</button>
</form>
<h3 id="error-message"></h3>