|
@@ -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) => {
|