Revert "changes LiebContext, renamed User to LiebUser"

This reverts commit 7b44e41eb2.
This commit is contained in:
t.ruspekhofer 2022-02-20 15:48:20 +01:00
parent 31a0e20f1d
commit e0fd579c00
12 changed files with 20 additions and 31 deletions

View file

@ -1,11 +1,10 @@
using Discord.OAuth2;
using Discord.OAuth2;
using Lieb.Data;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Identity;
var builder = WebApplication.CreateBuilder(args);
@ -14,10 +13,6 @@ builder.Services.AddRazorPages();
builder.Services.AddDbContext<LiebContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("LiebContext")));
/*
builder.Services.AddDefaultIdentity<LiebUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddEntityFrameworkStores<Lieb2Context>();builder.Services.AddDbContext<Lieb2Context>(options =>
options.UseSqlServer(connectionString));*/
builder.Services.AddDatabaseDeveloperPageExceptionFilter();