Skip to content

Commit

Permalink
Ability to whitelist email domains
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Aug 20, 2023
1 parent bca9d0d commit 62dae05
Show file tree
Hide file tree
Showing 6 changed files with 1,758 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SS14.Auth.Shared/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ protected override void OnModelCreating(ModelBuilder builder)
.HasIndex(p => new {p.Domain})
.IsUnique();

builder.Entity<WhitelistEmail>()
.HasIndex(p => new {p.Domain})
.IsUnique();

builder.Entity<Patron>()
.HasIndex(p => p.PatreonId)
.IsUnique();
Expand Down Expand Up @@ -93,6 +97,7 @@ protected override void OnModelCreating(ModelBuilder builder)
public DbSet<AuthHash> AuthHashes { get; set; }
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
public DbSet<BurnerEmail> BurnerEmails { get; set; }
public DbSet<WhitelistEmail> WhitelistEmails { get; set; }
public DbSet<Patron> Patrons { get; set; }
public DbSet<PatreonWebhookLog> PatreonWebhookLogs { get; set; }
public DbSet<UserOAuthClient> UserOAuthClients { get; set; }
Expand Down
Loading

0 comments on commit 62dae05

Please sign in to comment.