Browse Source

fix(nc-gui): add google auth button to signin page

pull/3945/head
braks 2 years ago
parent
commit
77d66b985c
  1. 14
      packages/nc-gui/pages/signin.vue
  2. 2
      packages/nc-gui/pages/signup/[[token]].vue

14
packages/nc-gui/pages/signin.vue

@ -7,7 +7,7 @@ definePageMeta({
title: 'title.headLogin',
})
const { signIn: _signIn } = useGlobal()
const { signIn: _signIn, appInfo } = useGlobal()
const { api, isLoading, error } = useApi({ useGlobalInstance: true })
@ -119,6 +119,18 @@ function resetError() {
</span>
</button>
<a
v-if="appInfo.googleAuthEnabled"
:href="`${appInfo.ncSiteUrl}/auth/google`"
class="scaling-btn bg-opacity-100 after:(!bg-white) !text-primary !no-underline"
>
<span class="flex items-center gap-2">
<LogosGoogleGmail />
Sign In with Google
</span>
</a>
<div class="text-end prose-sm">
{{ $t('msg.info.signUp.dontHaveAccount') }}
<nuxt-link to="/signup">{{ $t('general.signUp') }}</nuxt-link>

2
packages/nc-gui/pages/signup/[[token]].vue

@ -132,7 +132,7 @@ function resetError() {
<a
v-if="appInfo.googleAuthEnabled"
:href="`${api.instance.defaults.baseURL}/auth/google`"
:href="`${appInfo.ncSiteUrl}/auth/google`"
class="scaling-btn bg-opacity-100 after:(!bg-white) !text-primary !no-underline"
>
<span class="flex items-center gap-2">

Loading…
Cancel
Save