-
-
-
-
-
{{ project.title }}
-
-
-
+
+
+
+
+
+
+
+
+
{{ project.title }}
+
+
+
+
+
+
+
+
-
diff --git a/packages/nc-gui-v2/pages/signin.vue b/packages/nc-gui-v2/pages/signin.vue
index 0d770e1914..e2f644b4c8 100644
--- a/packages/nc-gui-v2/pages/signin.vue
+++ b/packages/nc-gui-v2/pages/signin.vue
@@ -35,9 +35,11 @@
import {ref, reactive} from 'vue'
import {useUser} from "~/composables/user";
import {extractSdkResponseErrorMsg} from "~/helpers/errorUtils";
-import {useNuxtApp} from "#app";
+import {useNuxtApp, useRouter} from "#app";
+
+const { $api} = useNuxtApp()
+const $router = useRouter()
-const {$api} = useNuxtApp()
const valid = ref()
const error = ref()
const form = reactive({
@@ -50,7 +52,8 @@ const signIn = async () => {
error.value = null
try {
const {token} = await $api.auth.signin(form)
- setToken(token)
+ await setToken(token)
+ await $router.push('/projects')
} catch (e) {
error.value = await extractSdkResponseErrorMsg(e)
}
diff --git a/packages/nc-gui-v2/pages/signup.vue b/packages/nc-gui-v2/pages/signup.vue
index 7b52b3cbbf..473fae580f 100644
--- a/packages/nc-gui-v2/pages/signup.vue
+++ b/packages/nc-gui-v2/pages/signup.vue
@@ -34,10 +34,9 @@