Shun Miyazawa 1 سال پیش
والد
کامیت
91c5fdcc3a
2فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 1
      apps/app/src/components/LoginForm/LoginForm.tsx
  2. 1 2
      apps/app/src/pages/login/index.page.tsx

+ 1 - 1
apps/app/src/components/LoginForm/LoginForm.tsx

@@ -38,7 +38,7 @@ type LoginFormProps = {
   enabledExternalAuthType?: IExternalAuthProviderType[],
   enabledExternalAuthType?: IExternalAuthProviderType[],
   isMailerSetup?: boolean,
   isMailerSetup?: boolean,
   externalAccountLoginError?: IExternalAccountLoginError,
   externalAccountLoginError?: IExternalAccountLoginError,
-  minPasswordLength?: number,
+  minPasswordLength: number,
 }
 }
 export const LoginForm = (props: LoginFormProps): JSX.Element => {
 export const LoginForm = (props: LoginFormProps): JSX.Element => {
   const { t } = useTranslation();
   const { t } = useTranslation();

+ 1 - 2
apps/app/src/pages/login/index.page.tsx

@@ -36,7 +36,7 @@ type Props = CommonProps & {
   isPasswordResetEnabled: boolean,
   isPasswordResetEnabled: boolean,
   isEmailAuthenticationEnabled: boolean,
   isEmailAuthenticationEnabled: boolean,
   externalAccountLoginError?: IExternalAccountLoginError,
   externalAccountLoginError?: IExternalAccountLoginError,
-  minPasswordLength?: number,
+  minPasswordLength: number,
 };
 };
 
 
 const LoginPage: NextPage<Props> = (props: Props) => {
 const LoginPage: NextPage<Props> = (props: Props) => {
@@ -120,7 +120,6 @@ async function injectServerConfigurations(context: GetServerSidePropsContext, pr
   props.isEmailAuthenticationEnabled = configManager.getConfig('crowi', 'security:passport-local:isEmailAuthenticationEnabled');
   props.isEmailAuthenticationEnabled = configManager.getConfig('crowi', 'security:passport-local:isEmailAuthenticationEnabled');
   props.registrationMode = configManager.getConfig('crowi', 'security:registrationMode');
   props.registrationMode = configManager.getConfig('crowi', 'security:registrationMode');
   props.minPasswordLength = configManager.getConfig('crowi', 'app:minPasswordLength');
   props.minPasswordLength = configManager.getConfig('crowi', 'app:minPasswordLength');
-
 }
 }
 
 
 export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {
 export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {