mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -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
|
@ -8,8 +8,10 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using System.Security.Principal;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Ombi.Core.Engine.Interfaces;
|
||||
using Ombi.Core.Helpers;
|
||||
|
@ -25,7 +27,7 @@ namespace Ombi.Core.Engine
|
|||
{
|
||||
public TvRequestEngine(ITvMazeApi tvApi, IRequestServiceMain requestService, IPrincipal user,
|
||||
INotificationHelper helper, IMapper map,
|
||||
IRuleEvaluator rule, IUserIdentityManager manager,
|
||||
IRuleEvaluator rule, UserManager<OmbiUser> manager,
|
||||
ITvSender sender) : base(user, requestService, rule)
|
||||
{
|
||||
TvApi = tvApi;
|
||||
|
@ -38,12 +40,12 @@ namespace Ombi.Core.Engine
|
|||
private INotificationHelper NotificationHelper { get; }
|
||||
private ITvMazeApi TvApi { get; }
|
||||
private IMapper Mapper { get; }
|
||||
private IUserIdentityManager UserManager { get; }
|
||||
private UserManager<OmbiUser> UserManager { get; }
|
||||
private ITvSender TvSender {get;}
|
||||
|
||||
public async Task<RequestEngineResult> RequestTvShow(SearchTvShowViewModel tv)
|
||||
{
|
||||
var user = await UserManager.GetUser(User.Identity.Name);
|
||||
var user = await UserManager.GetUserAsync(new ClaimsPrincipal(User));
|
||||
|
||||
var tvBuilder = new TvShowRequestBuilder(TvApi);
|
||||
(await tvBuilder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue