Skip to content

Commit 0d3d361

Browse files
committed
feat: fix disable registartion
1 parent eeadd1a commit 0d3d361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/backend/src/services/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

apps/frontend/src/app/(app)/auth/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const metadata: Metadata = {
1212
};
1313
export 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;

0 commit comments

Comments
 (0)