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 {
21
21
private _emailService : EmailService
22
22
) { }
23
23
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 ) {
25
25
return true ;
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const metadata: Metadata = {
12
12
} ;
13
13
export default async function Auth ( params : { searchParams : { provider : string } } ) {
14
14
const t = await getT ( ) ;
15
- if ( process . env . DISABLE_REGISTRATION && process . env . DISABLE_REGISTRATION !== 'false ') {
15
+ if ( process . env . DISABLE_REGISTRATION === 'true ') {
16
16
const canRegister = (
17
17
await ( await internalFetch ( '/auth/can-register' ) ) . json ( )
18
18
) . register ;
You can’t perform that action at this time.
0 commit comments