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 moved

Legend:

Unmodified
Added
Removed
  • iknow-api/Migrations/20251022202014_InitialCreate.cs

    rd025ba3 r5b42c8d  
    2323                    Index = table.Column<string>(type: "text", nullable: true),
    2424                    Email = table.Column<string>(type: "text", nullable: true),
    25                     Password = table.Column<string>(type: "text", nullable: true),
     25                    PasswordHash = table.Column<string>(type: "text", nullable: true),
    2626                    Bday = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
    2727                    CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
Note: See TracChangeset for help on using the changeset viewer.