Commit graph

9 commits

Author SHA1 Message Date
Cipher Vance
3d9de8ba11 feat: add user service layer with business logic
- Create services/user_service.go with user creation and verification
- Add input validation for username, email, and password
- Implement duplicate user checking and password hashing
- Add comprehensive error handling and logging
2025-09-18 20:06:36 -05:00
Cipher Vance
0698ba5c1f refactor(service): enrich UserService.create_user 2025-09-09 08:32:49 -05:00
Cipher Vance
6c994db855 refactor: change from 3 chars in username to 5 2025-09-08 21:08:40 -05:00
Blake Ridgway
dc36b21dcc (refactor): Implement robust logging and database error handling
Introduced logging for user operations
Added database rollback on user creation failure
Enhanced exception handling and error reporting
2025-04-03 10:42:01 -05: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
51f154ab73 (feat): Added PostgreSQL connection string encoding. 2025-02-15 18:58:48 -06:00
b1f2d29fe5 (feat): User service init 2024-12-18 10:43:20 -06:00