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
-2
View File
@@ -18,7 +18,6 @@ describe('authn api', () => {
it('GET /signup-info', async () => {
mockGetSignupInfo.mockResolvedValue({
userCount: 5,
enablePublicSignup: true,
})
const app = new Hono().route('/', authnRoute)
@@ -27,7 +26,6 @@ describe('authn api', () => {
expect(res.status).toBe(200)
expect(await res.json()).toEqual({
userCount: 5,
enablePublicSignup: true,
})
})
})
-1
View File
@@ -18,7 +18,6 @@ const route = app
const info = await teamService.getSignupInfo()
return c.json({
userCount: info.userCount,
enablePublicSignup: info.enablePublicSignup,
})
})
.get('/me', async (c) => {