refactor: 移除 ttyd 扩展的“用户凭据”功能

This commit is contained in:
mofeng-git
2026-02-11 16:50:49 +08:00
parent 24c4002ef2
commit f912c977d0
7 changed files with 1 additions and 26 deletions

View File

@@ -156,7 +156,6 @@ pub struct TtydConfigUpdate {
pub enabled: Option<bool>,
pub port: Option<u16>,
pub shell: Option<String>,
pub credential: Option<String>,
}
/// Update gostc config
@@ -203,9 +202,6 @@ pub async fn update_ttyd_config(
if let Some(ref shell) = req.shell {
ttyd.shell = shell.clone();
}
if req.credential.is_some() {
ttyd.credential = req.credential.clone();
}
})
.await?;