File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
backend/src/services/auth
frontend/src/app/(app)/auth Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class AuthService {
2121 private _emailService : EmailService
2222 ) { }
2323 async canRegister ( provider : string ) {
24- if ( ( ! process . env . DISABLE_REGISTRATION && process . env . DISABLE_REGISTRATION !== 'false' ) || provider === Provider . GENERIC ) {
24+ if ( process . env . DISABLE_REGISTRATION !== 'true' || provider === Provider . GENERIC ) {
2525 return true ;
2626 }
2727
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const metadata: Metadata = {
1212} ;
1313export default async function Auth ( params : { searchParams : { provider : string } } ) {
1414 const t = await getT ( ) ;
15- if ( process . env . DISABLE_REGISTRATION && process . env . DISABLE_REGISTRATION !== 'false ') {
15+ if ( process . env . DISABLE_REGISTRATION === 'true ') {
1616 const canRegister = (
1717 await ( await internalFetch ( '/auth/can-register' ) ) . json ( )
1818 ) . register ;
You can’t perform that action at this time.
0 commit comments