jfa-go
jfa-go copied to clipboard
Feature Request - Replace Jellyfin's "Forgot Password" button with link to JFA-GO
I have JFA-GO set up to send password reset links to users' emails. Obviously Jellyfin can't do this though, so when a user clicks "Forgot password" on the Jellyfin sign-in page, it tries to reset it through Jellyfin (and fails if they aren't in my local network).
In my own setup, I modified the "session-login.c88fc4019dc5f2693ced.chunk.js" JavaScript file in the WebUI files
I just changed the value of
function() {
m.ZP.navigate("forgotpassword.html")
}
to
function() {
window.open("https://<jfa-go url>/my/account", "_blank");
}
Now, whenever a user clicks "Reset password" in Jellyfin, it opens JFA-GO in a new tab on the page where they can reset their password (if the "My Account" page is turned on)
Would this be possible to automatically inject into the JS if the config directory is linked to JFA-GO? I'd imagine my manual change will break as soon as they update the WebUI in some way that changes the javascript
I love the idea and I will use it in my setup. Have yet to deploy JFA go myself as I've been using Wizarr instead but only now realized that it doesn't handle password resets. Just a quick question, does it still work with Jellyfin 10.9.x ?
+1
@loof2736 Would you mind helping me? I tried deploying this setup but my password resets are still trying to get processed though local network so it fails.. While typing this I just found the page where they refer to this. Should I modify my caddy config first by adding the lines mentionned at the bottom? Thanks
Had it working for a while but 10.10 is out now and it seems like the file naming has changed and I'm not sure this is possible anymore. Can someone confirm?
Edit: I think I found the file that needs to be edited, after doing sudo grep -rl 'forgotpassword.html', I found that 3 files contained the reference, but only one had the navigate function. For me its called 9203.0e593c126a4b325cd3eb.chunk.js. Would this code still work the same? Thanks
function() { window.open("https://<jfa-go url>/my/account", "_blank"); }
Double Edit: Nevermind, it still works the same! Don't mind my lazy ass who didn't think he could figure it out
Sorry I probably won't ever do an injection-y sort of thing, I'd be too worried about things changing on the Jellyfin side, or for being responsible for messing people's instances up. Also i suspect it wouldn't work for most people who use docker. I did link to this thread in the wiki though for customization info.