We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 751c6e1 + f28c0a4 commit 3efcd27Copy full SHA for 3efcd27
1 file changed
apps/login/src/app/(main)/(illustration)/register/page.tsx
@@ -55,19 +55,6 @@ export default async function Page(props: {
55
});
56
57
58
- if (!loginSettings?.allowRegister) {
59
- return (
60
- <>
61
- <h1>
62
- <Translated i18nKey="disabled.title" namespace="register" />
63
- </h1>
64
- <p className="ztdl-p">
65
- <Translated i18nKey="disabled.description" namespace="register" />
66
- </p>
67
- </>
68
- );
69
- }
70
-
71
return (
72
<>
73
<h1>
@@ -83,7 +70,8 @@ export default async function Page(props: {
83
</Alert>
84
)}
85
86
- {passwordComplexitySettings &&
+ {loginSettings?.allowRegister &&
74
+ passwordComplexitySettings &&
87
75
organization &&
88
76
(loginSettings.allowUsernamePassword ||
89
77
loginSettings.passkeysType == PasskeysType.ALLOWED) && (
0 commit comments