feat(auth): remove enablePublicSignup and disable public signup in UI

This commit is contained in:
yiling
2026-06-03 10:18:15 +08:00
parent e91562bf89
commit 5ae7e408ec
9 changed files with 2 additions and 47 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export const auth = betterAuth({
const info = await teamService.getSignupInfo()
if (info.userCount > 0) {
if (!inviteCode && !info.enablePublicSignup) {
if (!inviteCode) {
console.log('[Better Auth Hook] Public signup is disabled')
return ctx.json(
{