mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
work around the user management
This commit is contained in:
parent
5b49d03f85
commit
5ec9123851
19 changed files with 328 additions and 68 deletions
|
@ -1,5 +1,7 @@
|
|||
using AutoMapper;
|
||||
using System;
|
||||
using System.Security.Claims;
|
||||
using Ombi.Core.Models.UI;
|
||||
|
||||
namespace Ombi.Mapping
|
||||
{
|
||||
|
@ -23,4 +25,17 @@ namespace Ombi.Mapping
|
|||
return default(DateTime);
|
||||
}
|
||||
}
|
||||
|
||||
public class ClaimsConverter : ITypeConverter<Claim, ClaimCheckboxes>
|
||||
{
|
||||
|
||||
public ClaimCheckboxes Convert(Claim source, ClaimCheckboxes destination, ResolutionContext context)
|
||||
{
|
||||
return new ClaimCheckboxes
|
||||
{
|
||||
Enabled = true,
|
||||
Value = source.Value
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue