mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: sign up page not found for a new basic authentication (#4556)
This commit is contained in:
parent
af1325f055
commit
65b91797ee
@ -29,9 +29,7 @@ export const Options = () => {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
title: '{{t("Allow to sign up")}}',
|
title: '{{t("Allow to sign up")}}',
|
||||||
'x-component': 'Checkbox',
|
'x-component': 'Checkbox',
|
||||||
'x-component-props': {
|
default: true,
|
||||||
defaultChecked: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -103,7 +103,7 @@ export const SignInForm = (props: { authenticator: Authenticator }) => {
|
|||||||
const authenticator = props.authenticator;
|
const authenticator = props.authenticator;
|
||||||
const { authType, name, options } = authenticator;
|
const { authType, name, options } = authenticator;
|
||||||
const signUpPages = useSignUpForms();
|
const signUpPages = useSignUpForms();
|
||||||
const allowSignUp = !!signUpPages[authType] && options?.allowSignUp;
|
const allowSignUp = signUpPages[authType] && options?.allowSignUp ? true : false;
|
||||||
const signUpLink = `/signup?name=${name}`;
|
const signUpLink = `/signup?name=${name}`;
|
||||||
|
|
||||||
const useBasicSignIn = () => {
|
const useBasicSignIn = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user