From fe68238029ec3940f9e134bca20263ac5a13498f Mon Sep 17 00:00:00 2001 From: elightcap <50679504+elightcap@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:59:54 -0400 Subject: [PATCH] Mask passwords in server manager (#190) * mask password in server connections * add button to show or hide password * remove unused var * remove disable on mask button * remove password reveal control from ms edge * add a comment * small formatting fix * actually remove password reveal control from ms edge * mask password in server list * Fix server path redaction matching port number * Move password show/hide button to password input --------- Co-authored-by: evan.lightcap Co-authored-by: mircearoata --- frontend/src/_global.postcss | 4 +++ .../components/modals/ServerManager.svelte | 33 +++++++++++++++---- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/frontend/src/_global.postcss b/frontend/src/_global.postcss index a7fd1072..c53d4696 100644 --- a/frontend/src/_global.postcss +++ b/frontend/src/_global.postcss @@ -137,3 +137,7 @@ button { margin-inline-start: 40px; } } + +::-ms-reveal { + display: none; +} \ No newline at end of file diff --git a/frontend/src/lib/components/modals/ServerManager.svelte b/frontend/src/lib/components/modals/ServerManager.svelte index 9f9b705a..4e7a6827 100644 --- a/frontend/src/lib/components/modals/ServerManager.svelte +++ b/frontend/src/lib/components/modals/ServerManager.svelte @@ -1,5 +1,5 @@ @@ -175,7 +180,7 @@ {#each $remoteServers as remoteServer} {$installsMetadata[remoteServer].info?.launcher} - {remoteServer} + {redactRemoteURL(remoteServer)} {#if $installsMetadata[remoteServer]?.state === ficsitcli.InstallState.VALID} {$installsMetadata[remoteServer].info?.type} @@ -265,11 +270,25 @@ placeholder={$t('server-manager.username-placeholder', 'username')} type="text" bind:value={newServerUsername}/> - +
+ + {#if maskPassword} + + {:else} + + {/if} + +