From 2ba458787841226967bb2eae342d83788944f85c Mon Sep 17 00:00:00 2001 From: jramseygreen <44009946+jramseygreen@users.noreply.github.com> Date: Sat, 23 Mar 2024 16:32:00 +0000 Subject: [PATCH 1/2] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 4a996a7..03f88d1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ This is just a guide for various modifications and dumping ground for jellyfin m * [Pan and tilt the backdrops with fades in and out](#pan-and-tilt-the-backdrops-with-fades-in-and-out) * [Default every users page size](#default-every-users-page-size) * [Change the Title of Jellyfin in the browser tab](#change-the-title-of-jellyfin-in-the-browser-tab) + * [Change the password reset processs for use with jfa-go email password reseting](#change-the-password-reset-process-for-use-with-jfa-go-email-password-reseting) - [Adding a footer to jellyfin](#adding-a-footer-to-jellyfin) - [changing live tv movies from portrait cards to landscape](#changing-live-tv-movies-from-portrait-cards-to-landscape) * [NGINX Serviceworker.js fix](#fix-the-serviceworkerjs-so-it-does-not-throw-errors-and-plays-nice-in-nginx) @@ -507,6 +508,45 @@ This is a fairly simple mod, all you have to do is edit the main.xxxxxxxxxx.bund Change the text from Jellyfin to whatever you want, Then open up index.html in the same folder and find `Jellyfin` and change that as well. +## Change the password reset processs for use with jfa-go email password reseting + +This should be used in combination with some other service (such as [jfa-go](https://github.com/hrfee/jfa-go)) which will manage the password reseting for you. +The default flow of jellyfin is to give you a message that a pin has been saved in a file, then clicking the button leads to the pin reset screen. Depending on how you want to manage password resets, you may not even want the user to get here. + +Go to your web root for jellyfin /usr/share/jellyfin/web/ and use nano (or your own text editor) to edit the session-forgotPassword.xxxxxxxxxxxxxx.chunk.js file +press ctrl+w and find the string + + if("PinCode"==e.Action){var t=a.ZP.translate("MessageForgotPasswordFileCreated"); + +Change + + var t=a.ZP.translate("MessageForgotPasswordFileCreated"); + +To + + var t=""; + +Change + + t+="
",t+="Enter PIN here to finish Password Reset
",t+="
",t+=e.PinFile,t+="
", + +To + + t+="
",t+="An email has been sent with a link to reset your password
", +Removing: `,t+="
",t+=e.PinFile,t+="
",` entirely + + + +If you want to make the button on the message take you back to the login page instead of going to the pin page if you are setting up resets via email on jfa-go + +Change +callback:function(){n.ZP.navigate("forgotpasswordpin.html")}})}} + + +To +callback:function(){history.back()}})}} + + --- # Adding a footer to jellyfin From 15ba73f5b860d81ac560ac3957347a8658b11a3f Mon Sep 17 00:00:00 2001 From: jramseygreen <44009946+jramseygreen@users.noreply.github.com> Date: Sat, 23 Mar 2024 16:34:58 +0000 Subject: [PATCH 2/2] Include password reset mod Includes a mod for if you were using a service such as jfa-go for password resets --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 03f88d1..0bd5710 100644 --- a/README.md +++ b/README.md @@ -508,7 +508,7 @@ This is a fairly simple mod, all you have to do is edit the main.xxxxxxxxxx.bund Change the text from Jellyfin to whatever you want, Then open up index.html in the same folder and find `Jellyfin` and change that as well. -## Change the password reset processs for use with jfa-go email password reseting +## Change the password reset process for use with jfa-go email password reseting This should be used in combination with some other service (such as [jfa-go](https://github.com/hrfee/jfa-go)) which will manage the password reseting for you. The default flow of jellyfin is to give you a message that a pin has been saved in a file, then clicking the button leads to the pin reset screen. Depending on how you want to manage password resets, you may not even want the user to get here.