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