📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
picker
kruzhambus61640e4bc3ab
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.tsindex a39d927e6..2d65a41cb 100644--- a/src/auth/auth.controller.ts+++ b/src/auth/auth.controller.ts@@ -24,7 +24,7 @@ import { SelfhostedGuard } from '../common/guards/selfhosted.guard'import {isSelfhosted, SELFHOSTED_EMAIL, SELFHOSTED_PASSWORD, SELFHOSTED_UUID,} from 'src/common/constants'-import * as _omit from 'lodash/omit'+import * as _pick from 'lodash/pick'// TODO: Add logout endpoint to invalidate the token@ApiTags('Auth')@@ -105,7 +105,7 @@ export class AuthController {userDTO.password = await this.authService.hashPassword(userDTO.password)try {- const userToUpdate = _omit(userDTO, ['id', 'isActive', 'evWarningSentOn', 'exportedAt', 'subID', 'subUpdateURL', 'subCancelURL', 'projects', 'actionTokens', 'roles', 'created', 'updated', 'planCode'])+ const userToUpdate = _pick(userDTO, ['email', 'password'])const user = await this.userService.create(userToUpdate)const actionToken = await this.actionTokensService.createForUser(user, ActionTokenType.EMAIL_VERIFICATION)const url = `${request.headers.origin}/verify/${actionToken.id}`