perf: Login api entrypt password

This commit is contained in:
fit2cloud-chenyw
2025-07-29 16:09:57 +08:00
parent a3e3647433
commit b116e37299
9 changed files with 30 additions and 17 deletions
+1 -4
View File
@@ -99,8 +99,7 @@ class HttpService {
// Skip auth for xpack_static requests
return config
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const request_key = LicenseGenerator.generate()
config.headers['X-SQLBOT-KEY'] = request_key
@@ -266,8 +265,6 @@ class HttpService {
heads['X-SQLBOT-ASSISTANT-ONLINE'] = assistantStore.getOnline
}
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const request_key = LicenseGenerator.generate()
heads['X-SQLBOT-KEY'] = request_key