signup fonctionnel

This commit is contained in:
MarcEricMartel
2022-11-03 09:45:59 -07:00
parent c59c7ee9f1
commit ca88b04811
10 changed files with 111 additions and 65 deletions

View File

@@ -31,6 +31,10 @@ builder.Services.AddIdentityCore<InventoryUser>()
builder.Services.AddAuthorization();
builder.Services.AddAuthentication().AddIdentityCookies();
builder.Services.Configure<IdentityOptions>(options => {
options.User.RequireUniqueEmail = true;
});
// Source: https://github.com/dotnet/aspnetcore/issues/9039
builder.Services.ConfigureApplicationCookie(o => {
o.Events = new CookieAuthenticationEvents() {