mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-20 03:51:35 +08:00
fix: do not show auth when input wrong auth code (#23)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -6,7 +6,7 @@ export const useGlobalState = createGlobalState(
|
||||
const loading = ref(false);
|
||||
const openSettings = ref({
|
||||
prefix: '',
|
||||
auth: false,
|
||||
needAuth: false,
|
||||
domains: [{
|
||||
label: 'test.com',
|
||||
value: 'test.com'
|
||||
|
||||
Reference in New Issue
Block a user