mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-24 15:05:24 -07:00
Correct the last issues with the merge
This commit is contained in:
parent
49b4cf8286
commit
d722a68249
3 changed files with 3 additions and 56 deletions
|
@ -52,14 +52,10 @@ namespace Ombi.Core.Authentication
|
||||||
IPasswordHasher<OmbiUser> passwordHasher, IEnumerable<IUserValidator<OmbiUser>> userValidators,
|
IPasswordHasher<OmbiUser> passwordHasher, IEnumerable<IUserValidator<OmbiUser>> userValidators,
|
||||||
IEnumerable<IPasswordValidator<OmbiUser>> passwordValidators, ILookupNormalizer keyNormalizer,
|
IEnumerable<IPasswordValidator<OmbiUser>> passwordValidators, ILookupNormalizer keyNormalizer,
|
||||||
IdentityErrorDescriber errors, IServiceProvider services, ILogger<UserManager<OmbiUser>> logger, IPlexApi plexApi,
|
IdentityErrorDescriber errors, IServiceProvider services, ILogger<UserManager<OmbiUser>> logger, IPlexApi plexApi,
|
||||||
<<<<<<< HEAD
|
|
||||||
IEmbyApiFactory embyApi, ISettingsService<EmbySettings> embySettings,
|
IEmbyApiFactory embyApi, ISettingsService<EmbySettings> embySettings,
|
||||||
IJellyfinApiFactory jellyfinApi, ISettingsService<JellyfinSettings> jellyfinSettings,
|
IJellyfinApiFactory jellyfinApi, ISettingsService<JellyfinSettings> jellyfinSettings,
|
||||||
ISettingsService<AuthenticationSettings> auth)
|
ISettingsService<AuthenticationSettings> auth,
|
||||||
=======
|
|
||||||
IEmbyApiFactory embyApi, ISettingsService<EmbySettings> embySettings, ISettingsService<AuthenticationSettings> auth,
|
|
||||||
ILdapUserManager ldapUserManager, ISettingsService<UserManagementSettings> userManagementSettings)
|
ILdapUserManager ldapUserManager, ISettingsService<UserManagementSettings> userManagementSettings)
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
: base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
|
: base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
|
||||||
{
|
{
|
||||||
_plexApi = plexApi;
|
_plexApi = plexApi;
|
||||||
|
@ -74,11 +70,8 @@ namespace Ombi.Core.Authentication
|
||||||
|
|
||||||
private readonly IPlexApi _plexApi;
|
private readonly IPlexApi _plexApi;
|
||||||
private readonly IEmbyApiFactory _embyApi;
|
private readonly IEmbyApiFactory _embyApi;
|
||||||
<<<<<<< HEAD
|
|
||||||
private readonly IJellyfinApiFactory _jellyfinApi;
|
private readonly IJellyfinApiFactory _jellyfinApi;
|
||||||
=======
|
|
||||||
private readonly ILdapUserManager _ldapUserManager;
|
private readonly ILdapUserManager _ldapUserManager;
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
private readonly ISettingsService<EmbySettings> _embySettings;
|
private readonly ISettingsService<EmbySettings> _embySettings;
|
||||||
private readonly ISettingsService<JellyfinSettings> _jellyfinSettings;
|
private readonly ISettingsService<JellyfinSettings> _jellyfinSettings;
|
||||||
private readonly ISettingsService<AuthenticationSettings> _authSettings;
|
private readonly ISettingsService<AuthenticationSettings> _authSettings;
|
||||||
|
@ -132,15 +125,13 @@ namespace Ombi.Core.Authentication
|
||||||
{
|
{
|
||||||
return await CheckEmbyPasswordAsync(user, password);
|
return await CheckEmbyPasswordAsync(user, password);
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
if (user.UserType == UserType.JellyfinUser)
|
if (user.UserType == UserType.JellyfinUser)
|
||||||
{
|
{
|
||||||
return await CheckJellyfinPasswordAsync(user, password);
|
return await CheckJellyfinPasswordAsync(user, password);
|
||||||
=======
|
}
|
||||||
if (user.UserType == UserType.LdapUser)
|
if (user.UserType == UserType.LdapUser)
|
||||||
{
|
{
|
||||||
return await CheckLdapPasswordAsync(user, password);
|
return await CheckLdapPasswordAsync(user, password);
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,11 +12,8 @@ export class UserManagementComponent implements OnInit {
|
||||||
|
|
||||||
public plexEnabled: boolean;
|
public plexEnabled: boolean;
|
||||||
public embyEnabled: boolean;
|
public embyEnabled: boolean;
|
||||||
<<<<<<< HEAD
|
|
||||||
public jellyfinEnabled: boolean;
|
public jellyfinEnabled: boolean;
|
||||||
=======
|
|
||||||
public ldapEnabled: boolean;
|
public ldapEnabled: boolean;
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
public settings: IUserManagementSettings;
|
public settings: IUserManagementSettings;
|
||||||
public claims: ICheckbox[];
|
public claims: ICheckbox[];
|
||||||
|
|
||||||
|
@ -49,11 +46,7 @@ export class UserManagementComponent implements OnInit {
|
||||||
this.settingsService.getUserManagementSettings().subscribe(x => {
|
this.settingsService.getUserManagementSettings().subscribe(x => {
|
||||||
this.settings = x;
|
this.settings = x;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
if(x.importEmbyUsers || x.importJellyfinUsers || x.importPlexUsers || x.importLdapUsers) {
|
||||||
if(x.importEmbyUsers || x.importJellyfinUsers || x.importPlexUsers) {
|
|
||||||
=======
|
|
||||||
if(x.importEmbyUsers || x.importPlexUsers || x.importLdapUsers) {
|
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
this.enableImportButton = true;
|
this.enableImportButton = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,11 +101,8 @@ export class UserManagementComponent implements OnInit {
|
||||||
});
|
});
|
||||||
this.settingsService.getPlex().subscribe(x => this.plexEnabled = x.enable);
|
this.settingsService.getPlex().subscribe(x => this.plexEnabled = x.enable);
|
||||||
this.settingsService.getEmby().subscribe(x => this.embyEnabled = x.enable);
|
this.settingsService.getEmby().subscribe(x => this.embyEnabled = x.enable);
|
||||||
<<<<<<< HEAD
|
|
||||||
this.settingsService.getJellyfin().subscribe(x => this.jellyfinEnabled = x.enable);
|
this.settingsService.getJellyfin().subscribe(x => this.jellyfinEnabled = x.enable);
|
||||||
=======
|
|
||||||
this.settingsService.getLdap().subscribe(x => this.ldapEnabled = x.isEnabled);
|
this.settingsService.getLdap().subscribe(x => this.ldapEnabled = x.isEnabled);
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public submit(): void {
|
public submit(): void {
|
||||||
|
@ -122,14 +112,9 @@ export class UserManagementComponent implements OnInit {
|
||||||
this.settings.defaultRoles = enabledClaims.map((claim) => claim.value);
|
this.settings.defaultRoles = enabledClaims.map((claim) => claim.value);
|
||||||
this.settings.bannedPlexUserIds = this.bannedPlexUsers.map((u) => u.id);
|
this.settings.bannedPlexUserIds = this.bannedPlexUsers.map((u) => u.id);
|
||||||
this.settings.bannedEmbyUserIds = this.bannedEmbyUsers.map((u) => u.id);
|
this.settings.bannedEmbyUserIds = this.bannedEmbyUsers.map((u) => u.id);
|
||||||
<<<<<<< HEAD
|
|
||||||
this.settings.bannedJellyfinUserIds = this.bannedJellyfinUsers.map((u) => u.id);
|
this.settings.bannedJellyfinUserIds = this.bannedJellyfinUsers.map((u) => u.id);
|
||||||
|
|
||||||
if(this.settings.importEmbyUsers || this.settings.importJellyfinUsers || this.settings.importPlexUsers) {
|
if(this.settings.importEmbyUsers || this.settings.importJellyfinUsers || this.settings.importPlexUsers) {
|
||||||
=======
|
|
||||||
|
|
||||||
if(this.settings.importEmbyUsers || this.settings.importPlexUsers) {
|
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
this.enableImportButton = true;
|
this.enableImportButton = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,11 +143,8 @@ export class UserManagementComponent implements OnInit {
|
||||||
|
|
||||||
this.jobService.runPlexImporter().subscribe();
|
this.jobService.runPlexImporter().subscribe();
|
||||||
this.jobService.runEmbyImporter().subscribe();
|
this.jobService.runEmbyImporter().subscribe();
|
||||||
<<<<<<< HEAD
|
|
||||||
this.jobService.runJellyfinImporter().subscribe();
|
this.jobService.runJellyfinImporter().subscribe();
|
||||||
=======
|
|
||||||
this.jobService.runLdapImporter().subscribe();
|
this.jobService.runLdapImporter().subscribe();
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private filter(query: string, users: IUsersModel[]): IUsersModel[] {
|
private filter(query: string, users: IUsersModel[]): IUsersModel[] {
|
||||||
|
|
|
@ -137,31 +137,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<mat-form-field appearance="outline" class="full">
|
|
||||||
<mat-label>Movie Request Limit</mat-label>
|
|
||||||
<input matInput id="movieRequestLimit" name="movieRequestLimit" [(ngModel)]="bulkMovieLimit">
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field appearance="outline" class="full">
|
|
||||||
<mat-label>Episode Request Limit</mat-label>
|
|
||||||
<input matInput id="episodeRequestLimit" name="episodeRequestLimit" [(ngModel)]="bulkEpisodeLimit">
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field appearance="outline" class="full">
|
|
||||||
<mat-label>Music Request Limit</mat-label>
|
|
||||||
<input matInput id="musicRequestLimit" name="musicRequestLimit" [(ngModel)]="bulkMusicLimit">
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field appearance="outline" class="full">
|
|
||||||
<mat-label [translate]="'UserPreferences.StreamingCountry'"></mat-label>
|
|
||||||
<mat-select [(value)]="bulkStreaming">
|
|
||||||
<mat-option *ngFor="let value of countries" [value]="value">
|
|
||||||
{{value}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
|
|
||||||
<button type="button" mat-raised-button (click)="bulkUpdate()">Update Users</button>
|
|
||||||
=======
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="movieRequestLimit" class="control-label">Movie Request Limit</label>
|
<label for="movieRequestLimit" class="control-label">Movie Request Limit</label>
|
||||||
<div>
|
<div>
|
||||||
|
@ -177,7 +152,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="btn btn-success-outline" (click)="bulkUpdate()">Update Users</button>
|
<button type="button" class="btn btn-success-outline" (click)="bulkUpdate()">Update Users</button>
|
||||||
>>>>>>> 691c70804f203fab858b1079a1cf3d5e4adbf322
|
|
||||||
</p-sidebar>
|
</p-sidebar>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue