flc icon indicating copy to clipboard operation
flc copied to clipboard

User Password/Admin Password Storage Support

Open gambit07 opened this issue 9 months ago • 6 comments

First off just tried this client out and love it, so thanks to all the contributors. My guess is this has been discussed, but it would be fantastic to have an option to store a password for both player account and administrator account per server. It's the only thing that might prevent me from switching from theRippers/omegaRogue's standalone client, it is incredibly convenient to have those passwords autofill when working within multiple servers a lot.

gambit07 avatar Apr 16 '25 04:04 gambit07

That would require injecting custom Javascript into the user's Foundry window. After some research it seems like Tauri JS API doesn't have webview.eval() function due to security concerns. It's possible to use eval from Rust backend but I'm not very familiar with Rust language. I will explore it but can't guarantee I will be able to implement this approach.

phenomen avatar Apr 17 '25 15:04 phenomen

That would require injecting custom Javascript into the user's Foundry window. After some research it seems like Tauri JS API doesn't have webview.eval() function due to security concerns. It's possible to use eval from Rust backend but I'm not very familiar with Rust language. I will explore it but can't guarantee I will be able to implement this approach.

Got it, appreciate you looking into it either way 👍

gambit07 avatar Apr 17 '25 16:04 gambit07

This is the only thing stopping me from adopting FLC as my default browser for Foundry. =c

igorteuri avatar Jul 30 '25 19:07 igorteuri

Maybe an alternative approach could be considered: for example, adding a small overlay button or placing a button next to "Join Server" that copies the password to the clipboard. That way, you don't have to manually type it in every time.

admbeck avatar Aug 22 '25 10:08 admbeck

Would something like this work? Basically, it automatically would grab the available players/gms from the page, alike the system recognizer. Then when logging in, you could just go to /game instead of /join with the credentials in the request, skipping the whole login injection you mentioned before.

Note; this is a heavy speculation; I have no actual clue if that is anywhere close to how this works :P Image

Gensokian avatar Sep 08 '25 06:09 Gensokian

@Gensokian Foundry does not provide API for that. You cannot send a "credentials request" to the login page because it doesn't accept any GET parameters.

phenomen avatar Sep 08 '25 14:09 phenomen