mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 20:47:37 +00:00
feat(auth): remove enablePublicSignup and disable public signup in UI
This commit is contained in:
@@ -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,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user