mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed build #1456
Fixed the issue where we were not validting the correct token when resetting the password #865 Removed the old user (Well commented it out for now)
This commit is contained in:
parent
818acd6452
commit
6c3523b21e
20 changed files with 182 additions and 370 deletions
|
@ -19,28 +19,20 @@ namespace Ombi.Store.Context
|
|||
Database.Migrate();
|
||||
|
||||
// Add the notifcation templates
|
||||
AddAllTemplates();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public DbSet<NotificationTemplates> NotificationTemplates { get; set; }
|
||||
public DbSet<GlobalSettings> Settings { get; set; }
|
||||
public DbSet<User> OldUsers { get; set; }
|
||||
public DbSet<PlexContent> PlexContent { get; set; }
|
||||
public DbSet<RadarrCache> RadarrCache { get; set; }
|
||||
public DbSet<NotificationTemplates> NotificationTemplates { get; set; }
|
||||
|
||||
public DbSet<MovieRequests> MovieRequests { get; set; }
|
||||
public DbSet<TvRequests> TvRequests { get; set; }
|
||||
public DbSet<ChildRequests> ChildRequests { get; set; }
|
||||
public DbSet<MovieIssues> MovieIssues { get; set; }
|
||||
public DbSet<TvIssues> TvIssues { get; set; }
|
||||
public DbSet<EmailTokens> EmailTokens { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
base.OnModelCreating(builder);
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
@ -48,7 +40,7 @@ namespace Ombi.Store.Context
|
|||
}
|
||||
|
||||
|
||||
private void AddAllTemplates()
|
||||
public void Seed()
|
||||
{
|
||||
// Check if templates exist
|
||||
var templates = NotificationTemplates.ToList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue