Fix: Editing a secret clears its masked value

This commit is contained in:
Maurus Decimus
2026-04-22 20:09:53 +02:00
parent 35e0ef74b9
commit 27ba55fbf6
9 changed files with 463 additions and 13 deletions
+1 -2
View File
@@ -13,6 +13,7 @@ import { Loader2, ShieldCheck, ShieldOff } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { SECRET_MASK } from '@/lib/jmapUtils';
interface OtpAuthValue {
otpUrl?: string | null;
@@ -25,8 +26,6 @@ interface OtpAuthFieldProps {
readOnly: boolean;
}
const SECRET_MASK = '*****';
const STALWART_IMAGE_URL = 'https://stalw.art/img/favicon-32x32.png';
function buildOtpAuthUrl(totp: OTPAuth.TOTP): string {