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
|
@ -76,14 +76,14 @@ namespace Ombi.DependencyInjection
|
|||
|
||||
services.AddScoped<IOmbiContext, OmbiContext>();
|
||||
services.AddTransient<ISettingsRepository, SettingsJsonRepository>();
|
||||
services.AddTransient<IUserRepository, UserRepository>();
|
||||
//services.AddTransient<IUserRepository, UserRepository>();
|
||||
services.AddTransient<ISettingsResolver, SettingsResolver>();
|
||||
services.AddTransient<IPlexContentRepository, PlexContentRepository>();
|
||||
services.AddTransient<INotificationTemplatesRepository, NotificationTemplatesRepository>();
|
||||
|
||||
services.AddTransient<ITvRequestRepository, TvRequestRepository>();
|
||||
services.AddTransient<IMovieRequestRepository, MovieRequestRepository>();
|
||||
services.AddTransient<ITokenRepository, TokenRepository>();
|
||||
//services.AddTransient<ITokenRepository, TokenRepository>();
|
||||
services.AddTransient(typeof(ISettingsService<>), typeof(SettingsService<>));
|
||||
}
|
||||
public static void RegisterServices(this IServiceCollection services)
|
||||
|
@ -107,7 +107,6 @@ namespace Ombi.DependencyInjection
|
|||
|
||||
public static void RegisterIdentity(this IServiceCollection services)
|
||||
{
|
||||
services.AddTransient<IUserIdentityManager, UserIdentityManager>();
|
||||
services.AddAuthorization(auth =>
|
||||
{
|
||||
auth.AddPolicy("Bearer", new AuthorizationPolicyBuilder()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue