Browse Source

feat(gui-v2): use `signIn` action after signing up

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2651/head
Braks 2 years ago committed by braks
parent
commit
c24d878433
  1. 6
      packages/nc-gui-v2/pages/signup.vue

6
packages/nc-gui-v2/pages/signup.vue

@ -19,8 +19,8 @@ const signUp = async () => {
error.value = null
try {
const { token } = await $api.auth.signup(form)
$state.token.value = token!
navigateTo('/projects')
$state.signIn(token!)
await navigateTo('/projects')
} catch (e: any) {
error.value = await extractSdkResponseErrorMsg(e)
}
@ -52,7 +52,7 @@ const signUp = async () => {
</div>
<div class="text-center">
<v-btn class="" @click="signUp">
<v-btn @click="signUp">
<b>{{ $t('general.signUp') }}</b>
</v-btn>
</div>

Loading…
Cancel
Save