Commit graph

13 commits

Author SHA1 Message Date
Cipher Vance
bb91aff5fd feat: add authentication routes with Gin handlers
- Create routes/auth.go with signup, login, and logout endpoints
- Add JSON request binding and validation
- Implement session management for user authentication
- Add proper HTTP status codes and error responses
2025-09-18 20:06:37 -05:00
Cipher Vance
f5f86a2bc7 refactor(api): unify auth endpoints under /api, enhance signup 2025-09-09 08:32:15 -05:00
Cipher Vance
a8bcd5e249 removed the HEAD changes 2025-08-28 20:32:26 -05:00
Blake Ridgway
ff67ec4cdc fix merge) 2025-04-03 14:52:34 -05:00
Blake Ridgway
de5bff5935 (refactor): Enhance error handling and route structure
Added url_prefix to auth blueprint
Implemented comprehensive exception handling with 500 errors
Improved code clarity and structure
2025-04-03 10:39:56 -05:00
blake
3ab162d8b8 fix: removed print line with user/pass that was used in debugging. 2025-02-16 16:26:23 +01:00
Blake Ridgway
4a4d693d72 fix: resolve AttributeError in User model and ensure consistent password handling
- Fixed the `AttributeError: 'User' object has no attribute '_password'` by properly mapping the `_password` attribute to the `password` column in the database.
- Updated the `User` model to ensure passwords are only hashed once during creation and not re-hashed when retrieved or updated.
- Improved the `check_password` method to correctly compare hashed passwords.
- Verified the signup and login flow to ensure consistent behavior
2025-02-15 22:42:50 -06:00
Blake Ridgway
d13c5885d8 (refactor) boilerplate .gitignore, cleaned up folders 2025-02-15 21:54:25 -06:00
Blake Ridgway
356058e1f9 (feaet): Refactor auth routes to use UserService 2025-02-15 21:30:23 -06:00
Blake Ridgway
f624792a2f (feat): input validation, improved error handling, and additional security measures. 2025-02-15 21:15:58 -06:00
Blake Ridgway
51f154ab73 (feat): Added PostgreSQL connection string encoding. 2025-02-15 18:58:48 -06:00
f87edf03ec (refactor): Fixed this to call in the user service 2024-12-18 10:43:11 -06:00
de460fbcbc (feat): Basic user auth 2024-12-17 14:23:38 -06:00