fix: sign up page not found for a new basic authentication (#4556)

This commit is contained in:
YANG QIA 2024-06-05 15:38:34 +08:00 committed by GitHub
parent af1325f055
commit 65b91797ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -29,9 +29,7 @@ export const Options = () => {
type: 'boolean',
title: '{{t("Allow to sign up")}}',
'x-component': 'Checkbox',
'x-component-props': {
defaultChecked: true,
},
default: true,
},
},
},

View File

@ -103,7 +103,7 @@ export const SignInForm = (props: { authenticator: Authenticator }) => {
const authenticator = props.authenticator;
const { authType, name, options } = authenticator;
const signUpPages = useSignUpForms();
const allowSignUp = !!signUpPages[authType] && options?.allowSignUp;
const allowSignUp = signUpPages[authType] && options?.allowSignUp ? true : false;
const signUpLink = `/signup?name=${name}`;
const useBasicSignIn = () => {