Commit Graph
11 Commits
Author SHA1 Message Date
whoswhip 89e9673a00 Convert more authentication apis to controllers and session management
- Updated `AuthController.cs` to change unauthenticated response to `Unauthorized` and added a new `Logout` method for session handling.
- Removed the old logout endpoint in `Program.cs` and centralized logout logic in `AuthController.cs`.
- Added `GetSession` and `DeleteSession` methods in `DatabaseService.cs` to enhance session management.
- Updated API endpoints in `dash.js` to reflect new routing structure for authorized account info and logout.
2025-07-06 18:59:39 -04:00
whoswhip 73248e723a Refactor authentication and database handling
- Introduced `AuthController` for user registration and login.
- Added `DatabaseService` to manage user-related database operations.
- Created `HelperService` for utility functions like JSON parsing and token generation.
- Updated `Program.cs` to register new services and controllers.
- Modified `login.js` and `register.js` to use new API endpoints.
- Cleaned up project file by removing unused class and ensuring proper compilation.
- Overall improvements enhance application structure, security, and functionality.
2025-07-06 18:17:54 -04:00
whoswhip 73743399f1 Split code into classes to make the codebase look cleaner
Added a new favicon/icon
Add more checks before uploading a paste, changed alert to use the showNotification function
Added password modal for private pastes instead of using alert
Fix a paste page navigation in dashboard
Improve auth css
2025-05-23 18:54:29 -04:00
whoswhip 2126c3a078 Implement user profile and pastes retrieval features: add user.html and user.js for user display, create API endpoints for user data, and enhance UI with new styles and elements.
### Copilot Message
2025-05-19 15:12:51 -04:00
whoswhip 1382fb9f07 Refactor navbar implementation: replace navbar.js with main.js, update HTML references, and enhance button styles. Add author username to paste retrieval response and implement clipboard notification feature.
### Copilot Generated Commit Message
2025-05-19 02:11:24 -04:00
whoswhip 704d7149fc added logout api 2025-05-17 22:44:05 -04:00
whoswhip 2a25ab1ab8 Add user authentication and dashboard features
- Implemented login and registration forms with validation.
- Created dashboard layout to display user account information and pastes.
- Added JavaScript functionality for fetching account data and pastes.
- Styled authentication and dashboard pages with CSS.
- Introduced modals for logout and account deletion confirmation.
- Included error handling for user actions and API responses.

### Copilot generated commit message
2025-05-17 22:20:07 -04:00
whoswhip 94fb936b32 New page, decreased default maxfilesizem, add max title length. 2025-01-20 00:20:41 -05:00
whoswhip e0a2f20546 Change Bcrypt hashing to HMAC256 Hashing for ips only, add navbar, and exclude .env from git changes. 2025-01-18 00:31:55 -05:00
whoswhip 8f42dd55ae Add server side syntax validation, and paste view counter functionality. Improve frontend syntax highlighting, add more syntax highlighting options. Improve code block styling (majority of it is from github dark theme), better addContent function since highlightjs lets you use the code blocks for plain text. 2025-01-17 23:37:30 -05:00
whoswhip 01a637f5dd Add frontend files, improve backend. 2025-01-17 21:17:37 -05:00