security: 讯飞配置输入框增加密码隐藏+防复制+防自动填充
This commit is contained in:
@@ -442,7 +442,10 @@ export default function SystemSettings() {
|
||||
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), appId: e.target.value };
|
||||
setSettings({ ...settings, xfSpeechConfig: next });
|
||||
}}
|
||||
placeholder="e0fe23e3"
|
||||
onCopy={(e) => e.preventDefault()}
|
||||
onCut={(e) => e.preventDefault()}
|
||||
autoComplete="new-password"
|
||||
placeholder="********"
|
||||
className="input-minimal"
|
||||
/>
|
||||
</div>
|
||||
@@ -455,7 +458,10 @@ export default function SystemSettings() {
|
||||
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiKey: e.target.value };
|
||||
setSettings({ ...settings, xfSpeechConfig: next });
|
||||
}}
|
||||
placeholder="7fd08be316718c2280e85af4fe126306"
|
||||
onCopy={(e) => e.preventDefault()}
|
||||
onCut={(e) => e.preventDefault()}
|
||||
autoComplete="new-password"
|
||||
placeholder="********************************"
|
||||
className="input-minimal"
|
||||
/>
|
||||
</div>
|
||||
@@ -468,7 +474,10 @@ export default function SystemSettings() {
|
||||
const next = { ...(settings.xfSpeechConfig || { appId: '', apiKey: '', apiSecret: '' }), apiSecret: e.target.value };
|
||||
setSettings({ ...settings, xfSpeechConfig: next });
|
||||
}}
|
||||
placeholder="ZGI5MjAzZDA0YzYwNDhjMWZiNTM2NDE0"
|
||||
onCopy={(e) => e.preventDefault()}
|
||||
onCut={(e) => e.preventDefault()}
|
||||
autoComplete="new-password"
|
||||
placeholder="********************************"
|
||||
className="input-minimal"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user