From 02599754026e6a66662f753bb6b6117dfabb5f9a Mon Sep 17 00:00:00 2001 From: Fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Thu, 26 May 2022 10:11:53 +0500 Subject: [PATCH] fix: fixes jellyfin forgot password and adds emby support to the forgot password link Fixes jellyfin forgot password as it had a wrong url that lead to an empty page and also adds in emby forgot password link if the environmental variable is set fix #99 --- src/components/Login/JellyfinLogin.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Login/JellyfinLogin.tsx b/src/components/Login/JellyfinLogin.tsx index 540fb6fdc..7874118b1 100644 --- a/src/components/Login/JellyfinLogin.tsx +++ b/src/components/Login/JellyfinLogin.tsx @@ -266,8 +266,11 @@ const JellyfinLogin: React.FC = ({ as="a" buttonType="ghost" href={ - settings.currentSettings.jellyfinHost + - '/web/#!/forgotpassword.html' + process.env.JELLYFIN_TYPE == 'emby' + ? settings.currentSettings.jellyfinHost + + '/web/index.html#!/startup/forgotpassword.html' + : settings.currentSettings.jellyfinHost + + '/web/index.html#!/forgotpassword.html' } > {intl.formatMessage(messages.forgotpassword)}