Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): SSH server addresses are hidden until clicked, like account emails #19173

Closedflamboh(GitHub profile, opens in a new tab)wants to merge 22 commits intomain fromrefs/pull/19173/headopened View on GitHub

Showing 23 changed files with 79 additions and 11 deletions (loading 20).

x
0 of 23 viewed, 23 left
10 additions and 4 deletionsapps/web/src/components/desktop/SshPasswordPromptDialog.tsxModified
View file
@@ -18,6 +18,7 @@
DialogTitle,
} from "../ui/dialog";
import { Input } from "../ui/input";
+import { SshSensitiveText } from "../settings/SshSensitiveText";
​
function describeSshTarget(request: DesktopSshPasswordPromptRequest): string {
return request.username ? `${request.username}@${request.destination}` : request.destination;
@@ -143,8 +144,6 @@
void respond(null);
​
- const target = describeSshTarget(request);
-​
return (
<Dialog
open
@@ -158,7 +157,8 @@
<DialogHeader>
<DialogTitle>SSH verification required</DialogTitle>
<DialogDescription>
- Enter the password or verification code required by <code>{target}</code>. T3 Code
+ Enter the password or verification code required by{" "}
+ <SshSensitiveText value={describeSshTarget(request)} className="text-sm" />. T3 Code
passes your response to the local SSH process and keeps it in memory to reuse for this
host. T3 Code does not write it to disk.
</DialogDescription>