fix(newapi): validate token input across ui and api

This commit is contained in:
Mison
2026-03-27 13:45:39 +08:00
parent 235c60df25
commit 062afb35db
7 changed files with 304 additions and 8 deletions

View File

@@ -472,6 +472,7 @@
<div class="form-group">
<label for="newapi-service-key">Root Token / API Key *</label>
<input type="password" id="newapi-service-key" placeholder="编辑时留空则保持原值" autocomplete="new-password">
<p class="hint">仅支持 ASCII 字符,请直接粘贴系统访问令牌,不要填写中文说明。</p>
</div>
<div class="form-row">
<div class="form-group">