From 33e972ce02478bb12d6afd968e49df899c915d8a Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 30 Dec 2025 06:09:59 -0800 Subject: [PATCH] fix(service-party-app): remove password input from Sign page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current system uses empty password for share encryption, so the password input field is unnecessary. Removed from both Transfer and Sign pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../service-party-app/src/pages/Sign.tsx | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/backend/mpc-system/services/service-party-app/src/pages/Sign.tsx b/backend/mpc-system/services/service-party-app/src/pages/Sign.tsx index cf5a6413..8b1ac783 100644 --- a/backend/mpc-system/services/service-party-app/src/pages/Sign.tsx +++ b/backend/mpc-system/services/service-party-app/src/pages/Sign.tsx @@ -30,7 +30,8 @@ export default function Sign() { const [shares, setShares] = useState([]); const [selectedShare, setSelectedShare] = useState(null); const [sessionCode, setSessionCode] = useState(urlSessionId || ''); - const [password, setPassword] = useState(''); + // 当前系统不使用密码,硬编码为空 + const password = ''; const [signingSession, setSigningSession] = useState(null); const [signature, setSignature] = useState(null); const [isLoading, setIsLoading] = useState(false); @@ -115,11 +116,6 @@ export default function Sign() { setError('请选择要使用的钱包份额'); return; } - if (!password) { - setError('请输入解锁密码'); - return; - } - setIsLoading(true); setError(null); setStep('signing'); @@ -321,19 +317,6 @@ export default function Sign() { - {/* 输入密码 */} -
- - setPassword(e.target.value)} - placeholder="输入您的份额解锁密码" - className={styles.input} - disabled={isLoading} - /> -
- {error &&
{error}
}
@@ -351,7 +334,7 @@ export default function Sign() {