Adding Jellyfin Setting for Custom "Forgot Password" URL

Adding Jellyfin Setting for Custom "Forgot Password" URL.  Useful in cases where you are using a custom authentication provider such as the LDAP plugin, Authelia, lldap, or any other external auth scheme with its own password reset page.
This commit is contained in:
Derek Paschal
2023-11-14 08:20:28 -06:00
parent 4005397f3d
commit ce9802d5d4
6 changed files with 68 additions and 31 deletions

View File

@@ -41,6 +41,7 @@ export interface PublicSettingsResponse {
locale: string;
emailEnabled: boolean;
newPlexLogin: boolean;
jellyfinForgotPasswordUrl: string;
}
export interface CacheItem {

View File

@@ -42,6 +42,7 @@ export interface JellyfinSettings {
externalHostname?: string;
libraries: Library[];
serverId: string;
jellyfinForgotPasswordUrl: string;
}
export interface TautulliSettings {
hostname?: string;
@@ -124,6 +125,7 @@ interface FullPublicSettings extends PublicSettings {
applicationUrl: string;
hideAvailable: boolean;
localLogin: boolean;
jellyfinForgotPasswordUrl: string;
movie4kEnabled: boolean;
series4kEnabled: boolean;
region: string;
@@ -331,6 +333,7 @@ class Settings {
name: '',
hostname: '',
externalHostname: '',
jellyfinForgotPasswordUrl: '',
libraries: [],
serverId: '',
},
@@ -534,6 +537,7 @@ class Settings {
applicationUrl: this.data.main.applicationUrl,
hideAvailable: this.data.main.hideAvailable,
localLogin: this.data.main.localLogin,
jellyfinForgotPasswordUrl: this.data.jellyfin.jellyfinForgotPasswordUrl,
movie4kEnabled: this.data.radarr.some(
(radarr) => radarr.is4k && radarr.isDefault
),