Template
mirror of
https://github.com/egmont11/ASP.Net-Core-MVC-Template.git
synced 2026-07-24 07:09:56 +02:00
Changed Auth to use Identity, with easy to set passsword requirenments via appsettings.json
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TemplateWeb.Models.DbModels;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TemplateWeb.Entities;
|
||||
|
||||
namespace TemplateWeb.Data;
|
||||
|
||||
public class AppDbContext : DbContext
|
||||
public class AppDbContext : IdentityDbContext<UserEntity>
|
||||
{
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<UserModel> Users { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user