feat: add more security settings

This commit is contained in:
Steven
2024-08-29 20:13:10 +08:00
parent 6c54732cd1
commit 0ac2554545
15 changed files with 312 additions and 247 deletions

View File

@ -21,7 +21,7 @@ const SignUp: React.FC = () => {
const allowConfirm = email.length > 0 && nickname.length > 0 && password.length > 0;
useEffect(() => {
if (!workspaceStore.profile.enableSignup) {
if (workspaceStore.setting.disallowUserRegistration) {
return navigateTo("/auth", {
replace: true,
});