fix: do not show auth when input wrong auth code (#23)

This commit is contained in:
Dream Hunter
2023-09-09 17:00:20 +08:00
committed by GitHub
parent 9ef359821c
commit 68cb005dd3
3 changed files with 10 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ const getOpenSettings = async (message) => {
const res = await api.fetch("/open_api/settings");
openSettings.value = {
prefix: res["prefix"] || "",
auth: res["auth"] || false,
needAuth: res["needAuth"] || false,
domains: res["domains"].map((domain) => {
return {
label: domain,
@@ -41,7 +41,7 @@ const getOpenSettings = async (message) => {
}
})
};
if (openSettings.value.auth && !auth.value) {
if (openSettings.value.needAuth) {
showAuth.value = true;
}
} catch (error) {