Commit Graph
7 Commits
Author SHA1 Message Date
whoswhip 57f1709032 Enhance paste management and user interface
- Updated `AuthController.cs` to include user `Type` in responses.
- Added `DeletePaste` and `ChangePasteID` endpoints in `PasteController.cs` with authentication and error handling.
- Removed `Logging.cs`, indicating a refactor of the logging mechanism.
- Implemented methods for deleting and updating paste IDs in `DatabaseService.cs`.
- Modified `SharpbinV2.Server.csproj` to exclude `logs` and `pastes` directories from compilation.
- Enhanced `paste.css` with styles for an edit icon.
- Introduced `userTypes` object in `dash.js` for better role management.
- Added delete button functionality in `paste.js` for authorized users.
- Updated `paste.html` to include edit and delete buttons for improved user experience.
2025-07-10 16:07:35 -04:00
whoswhip bea106ac72 Finish converting all apis to controllers, static endpoints next. 2025-07-09 14:50:59 -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 a338b8814a Prepare for switch to controllers & remove hmac hashing, switch to bcrypt instead. 2025-07-06 15:24:56 -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 01a637f5dd Add frontend files, improve backend. 2025-01-17 21:17:37 -05:00
whoswhip d0cf36108f Initial commit for new project 2025-01-16 18:20:43 -05:00