jfa-go icon indicating copy to clipboard operation
jfa-go copied to clipboard

Feature Request - Replace Jellyfin's "Forgot Password" button with link to JFA-GO

Open loof2736 opened this issue 1 year ago • 4 comments

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

loof2736 avatar Dec 29 '23 04:12 loof2736

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 ?

FaNt4zMa avatar Jul 06 '24 07:07 FaNt4zMa

+1

kiralR avatar Jul 28 '24 16:07 kiralR

@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

FaNt4zMa avatar Aug 01 '24 06:08 FaNt4zMa

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

FaNt4zMa avatar Mar 01 '25 08:03 FaNt4zMa

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.

hrfee avatar Jul 19 '25 17:07 hrfee