Changeset 5b42c8d for iknow-api/Models


Ignore:
Timestamp:
10/22/25 22:40:03 (11 months ago)
Author:
stefansaveski <stefansaveski19@…>
Branches:
master
Children:
41e4f9f
Parents:
d025ba3
Message:

Implement JWT Authentication and Update User Schema

Replaced repository interface with FinXaccesApi.Repositories in UsersControllers.cs. Updated database schema to use PasswordHash instead of Password. Added new migration files reflecting these changes. Updated service registration in Program.cs to include IAuthService and IUserRepository. Refactored UserRepository.cs and IUserRepository.cs with new methods and namespace changes. Commented out UserService.cs. Updated appsettings with new connection strings and JWT settings. Added BCrypt.Net-Next and System.IdentityModel.Tokens.Jwt packages. Introduced AuthController, UserDTO, AuthService, and IAuthService for handling authentication and user management.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Models/User.cs

    rd025ba3 r5b42c8d  
    1717        public string? Index { get; set; }
    1818        public string? Email { get; set; }
    19         public string? Password { get; set; }
     19        public string? PasswordHash { get; set; }
    2020        public DateTime Bday { get; set; }
    2121        public DateTime CreatedAt { get; set; }
Note: See TracChangeset for help on using the changeset viewer.