Browse Source

feat(vben5): The login page is configured for self-registration

- 登录页根据设置启用自注册
pull/1219/head
colin 11 months ago
parent
commit
1aa569e81c
  1. 5
      apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue

5
apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue

@ -9,7 +9,7 @@ import { computed, nextTick, onMounted, useTemplateRef } from 'vue';
import { AuthenticationLogin, useVbenModal, z } from '@vben/common-ui';
import { $t } from '@vben/locales';
import { useAbpStore } from '@abp/core';
import { useAbpStore, useSettings } from '@abp/core';
import { useAbpConfigApi } from '#/api/core/useAbpConfigApi';
import { useAuthStore } from '#/store';
@ -27,6 +27,8 @@ defineOptions({ name: 'Login' });
const abpStore = useAbpStore();
const authStore = useAuthStore();
const { isTrue } = useSettings();
const { getConfigApi } = useAbpConfigApi();
const login = useTemplateRef<LoginInstance>('login');
@ -118,6 +120,7 @@ onMounted(onInit);
ref="login"
:form-schema="formSchema"
:loading="authStore.loginLoading"
:show-register="isTrue('Abp.Account.IsSelfRegistrationEnabled')"
@submit="onLogin"
>
<!-- 第三方登录 -->

Loading…
Cancel
Save