Skip to content

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

Prefill login form if we are in dev mode

天舟2bf6e29a6356
diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vue
index 3396452a75..97a4038f77 100644
--- a/frontend/src/views/auth/Signin.vue
+++ b/frontend/src/views/auth/Signin.vue
@@ -127,7 +127,7 @@ import { computed, reactive, watchEffect } from "vue";
import { useStore } from "vuex";
import { useRouter } from "vue-router";
import { LoginInfo, ServerInfo } from "../../types";
-import { isRelease, isValidEmail } from "../../utils";
+import { isDev, isValidEmail } from "../../utils";
interface LocalState {
email: string;
@@ -148,8 +148,8 @@ export default {
const prepareInfo = () => {
store.dispatch("actuator/info").then((info: ServerInfo) => {
const demo = store.getters["actuator/isDemo"]();
- state.email = demo ? "[email protected]" : "";
- state.password = demo ? "1024" : "";
+ state.email = isDev() || demo ? "[email protected]" : "";
+ state.password = isDev() || demo ? "1024" : "";
// Navigate to signup if needs admin setup.
// Unable to achieve it in router.beforeEach because actutor/info is fetched async and returns
// after router has already made the decision on first page load.