Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: error with database

kruzhambusa532bb72a221
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
index 65b2182da..808a35b72 100644
--- a/src/auth/auth.controller.ts
+++ b/src/auth/auth.controller.ts
@@ -94,6 +94,10 @@ export class AuthController {
}
}
+ if (body.email === body.password) {
+ throw new ConflictException(i18n.t('auth.passwordSameAsEmail'))
+ }
+
const newUser = await this.authService.createUnverifiedUser(
body.email,
body.password,