@punks/backend-entity-manager 0.0.267 → 0.0.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22411,7 +22411,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
22411
22411
|
passwordHash,
|
|
22412
22412
|
passwordUpdateTimestamp: new Date(),
|
|
22413
22413
|
});
|
|
22414
|
-
|
|
22414
|
+
if (input.callback) {
|
|
22415
|
+
await this.sendRegistrationEmail(user, input.callback, input.languageCode);
|
|
22416
|
+
}
|
|
22415
22417
|
this.logger.debug(`User already exists but not verified. Sending new verification email: ${input.email} - ${input.userName}`, { user });
|
|
22416
22418
|
return {
|
|
22417
22419
|
success: true,
|
|
@@ -22424,7 +22426,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
22424
22426
|
passwordHash,
|
|
22425
22427
|
passwordUpdateTimestamp: new Date(),
|
|
22426
22428
|
});
|
|
22427
|
-
|
|
22429
|
+
if (input.callback) {
|
|
22430
|
+
await this.sendRegistrationEmail(newUser, input.callback, input.languageCode);
|
|
22431
|
+
}
|
|
22428
22432
|
this.logger.debug(`New user created: ${input.email} - ${input.userName}`, {
|
|
22429
22433
|
user: newUser,
|
|
22430
22434
|
});
|