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

@@ -222,6 +222,7 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
const baseUrl = settings.currentSettings.jellyfinExternalHost
? settings.currentSettings.jellyfinExternalHost
: settings.currentSettings.jellyfinHost;
const jellyfinForgotPasswordUrl = settings.currentSettings.jellyfinForgotPasswordUrl;
return (
<div>
<Formik
@@ -298,11 +299,11 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
<Button
as="a"
buttonType="ghost"
href={`${baseUrl}/web/index.html#!/${
process.env.JELLYFIN_TYPE === 'emby'
href={jellyfinForgotPasswordUrl ? `${jellyfinForgotPasswordUrl}` :
`${baseUrl}/web/index.html#!/${process.env.JELLYFIN_TYPE === 'emby'
? 'startup/'
: ''
}forgotpassword.html`}
}forgotpassword.html`}
>
{intl.formatMessage(messages.forgotpassword)}
</Button>