Add authentication and identity support using ASP.NET Core Identity

This commit is contained in:
2026-01-23 21:28:16 +01:00
parent cec2b65c29
commit 534ec5f36f
9 changed files with 807 additions and 9 deletions

View File

@@ -1,9 +1,11 @@
using API.Models.Internal.Altersgruppen;
using API.Models.Internal.User;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace API.Database
{
public class ApplicationDbContext : DbContext
public class ApplicationDbContext : IdentityDbContext<User>
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
{