We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f5e9f6 commit c2e46f0Copy full SHA for c2e46f0
components/server/src/user/user-service.ts
@@ -72,6 +72,10 @@ export class UserService {
72
// blocked = if user already blocked OR is not allowed to pass
73
newUser.blocked = newUser.blocked || !canPass;
74
}
75
+ if (newUser.additionalData) {
76
+ // When a user is created, it does not have `additionalData.profile` set, so it's ok to rewrite it here.
77
+ newUser.additionalData.profile = { acceptedPrivacyPolicyDate: new Date().toISOString() };
78
+ }
79
80
81
async findUserById(userId: string, id: string): Promise<User> {
0 commit comments