Skip to content

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

chore: optimize for saas (#5258)

ecmadaoc0569ecbf8a9
diff --git a/frontend/src/store/modules/actuator.ts b/frontend/src/store/modules/actuator.ts
index 781c1413a1..144173f841 100644
--- a/frontend/src/store/modules/actuator.ts
+++ b/frontend/src/store/modules/actuator.ts
@@ -73,6 +73,9 @@ export const useActuatorStore = defineStore("actuator", {
return serverInfo;
},
async tryToRemindRelease(): Promise<boolean> {
+ if (this.serverInfo?.saas ?? false) {
+ return false;
+ }
if (!this.releaseInfo.latest) {
const relase = await this.fetchLatestRelease();
this.releaseInfo.latest = relase;
diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vue
index 37d6da1298..d75b824baf 100644
--- a/frontend/src/views/auth/Signin.vue
+++ b/frontend/src/views/auth/Signin.vue
@@ -189,11 +189,15 @@ onMounted(async () => {
} else {
const url = new URL(window.location.href);
const params = new URLSearchParams(url.search);
- const email = params.get("email") ?? "";
- state.email = email;
+ state.email = params.get("email") ?? "";
+ state.password = params.get("password") ?? "";
+ state.showPassword = false;
}
await identityProviderStore.fetchIdentityProviderList();
+ if (state.email && state.password) {
+ await trySignin();
+ }
});
const allowSignin = computed(() => {