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
This commit is contained in:
Fallenbagel
2022-05-26 10:11:53 +05:00
parent 71d33e47a9
commit 0259975402

View File

@@ -266,8 +266,11 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
as="a" as="a"
buttonType="ghost" buttonType="ghost"
href={ href={
settings.currentSettings.jellyfinHost + process.env.JELLYFIN_TYPE == 'emby'
'/web/#!/forgotpassword.html' ? settings.currentSettings.jellyfinHost +
'/web/index.html#!/startup/forgotpassword.html'
: settings.currentSettings.jellyfinHost +
'/web/index.html#!/forgotpassword.html'
} }
> >
{intl.formatMessage(messages.forgotpassword)} {intl.formatMessage(messages.forgotpassword)}