Skip to content

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

fix: set user type for sign-up (#4886)

Danny Xuebf494371887
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.ts
index 190ac62c7b..a0d62ccecc 100644
--- a/frontend/src/store/modules/auth.ts
+++ b/frontend/src/store/modules/auth.ts
@@ -5,7 +5,7 @@ import { computed } from "vue";
import { SignupInfo, ActivateInfo } from "@/types";
import { getIntCookie } from "@/utils";
import { authServiceClient } from "@/grpcweb";
-import { LoginRequest, User } from "@/types/proto/v1/auth_service";
+import { LoginRequest, User, UserType } from "@/types/proto/v1/auth_service";
import { convertUserToPrincipal, useUserStore } from ".";
import { unknown } from "@/utils/common";
@@ -37,6 +37,7 @@ export const useAuthStore = defineStore("auth_v1", {
email: signupInfo.email,
title: signupInfo.name,
password: signupInfo.password,
+ userType: UserType.USER,
},
});
const user = await this.login({