Commit Graph
9 Commits
Author SHA1 Message Date
whoswhip 3eb7374a07 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.
2025-07-06 22:55:29 -04:00
whoswhip cc0c6a8286 refactor(api): migrate account deletion from minimal API to controller 2025-07-06 19:33:19 -04:00
whoswhip 73ac667c15 Merge branch 'sharpbinV2' of https://github.com/whoswhip/sharpbin into sharpbinV2 2025-07-06 18:59:48 -04:00
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 e6e6bf9ee6 Merge branch 'sharpbinV2' of https://github.com/whoswhip/sharpbin into sharpbinV2 2025-07-06 15:25:03 -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 1881c8a90d Merge branch 'sharpbinV2' of https://github.com/whoswhip/sharpbin into sharpbinV2 2025-06-29 10:29:46 -04:00
whoswhip 38411ca7c0 Add password reset functionality(WIP): implement PasswordReset class, database methods for password reset, and update routes for password reset handling. Enhance UI with new success message styles and update login page with reset password link. 2025-06-29 10:29:37 -04:00