Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: only auto login for demo.bytebase.com (#9850)

Tianzhou (天舟)0f3c065f1eb2
diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vue
index 000b19a2fa..de5b524ed8 100644
--- a/frontend/src/views/auth/Signin.vue
+++ b/frontend/src/views/auth/Signin.vue
@@ -306,7 +306,12 @@ onMounted(async () => {
}
await identityProviderStore.fetchIdentityProviderList();
- if (isDemo.value && state.email && state.password) {
+ if (
+ window.location.href.startsWith("https://demo.bytebase.com") &&
+ isDemo.value &&
+ state.email &&
+ state.password
+ ) {
await trySignin();
}
});