File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,15 +216,9 @@ export function SignInForm() {
216216 </ div >
217217 </ div >
218218
219- { /* Bottom link */ }
219+ { /* Registration disabled */ }
220220 < p className = "mt-6 text-center text-sm text-muted-foreground" >
221- Don't have an account?
222- < Link
223- to = "/sign-up"
224- className = "font-semibold text-foreground underline underline-offset-4 transition-colors hover:text-brand-accent"
225- >
226- Register
227- </ Link >
221+ Sign-ups are currently closed. Existing users only.
228222 </ p >
229223 </ div >
230224 </ div >
Original file line number Diff line number Diff line change @@ -25,15 +25,18 @@ function createAuth(ctx: GenericCtx<DataModel>) {
2525 emailAndPassword : {
2626 enabled : true ,
2727 requireEmailVerification : false ,
28+ disableSignUp : true ,
2829 } ,
2930 socialProviders : {
3031 google : {
3132 clientId : process . env . GOOGLE_CLIENT_ID ! ,
3233 clientSecret : process . env . GOOGLE_CLIENT_SECRET ! ,
34+ disableImplicitSignUp : true ,
3335 } ,
3436 github : {
3537 clientId : process . env . GITHUB_CLIENT_ID ! ,
3638 clientSecret : process . env . GITHUB_CLIENT_SECRET ! ,
39+ disableImplicitSignUp : true ,
3740 } ,
3841 } ,
3942 plugins : [
You can’t perform that action at this time.
0 commit comments