@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/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext exten
|
|
|
9
9
|
userName: string;
|
|
10
10
|
password: string;
|
|
11
11
|
registrationInfo: TUserRegistrationInfo;
|
|
12
|
-
callback
|
|
12
|
+
callback?: UserRegisterCallbackTemplate;
|
|
13
13
|
languageCode: string;
|
|
14
14
|
context?: TUserContext;
|
|
15
15
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -22396,7 +22396,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
22396
22396
|
passwordHash,
|
|
22397
22397
|
passwordUpdateTimestamp: new Date(),
|
|
22398
22398
|
});
|
|
22399
|
-
|
|
22399
|
+
if (input.callback) {
|
|
22400
|
+
await this.sendRegistrationEmail(user, input.callback, input.languageCode);
|
|
22401
|
+
}
|
|
22400
22402
|
this.logger.debug(`User already exists but not verified. Sending new verification email: ${input.email} - ${input.userName}`, { user });
|
|
22401
22403
|
return {
|
|
22402
22404
|
success: true,
|
|
@@ -22409,7 +22411,9 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
22409
22411
|
passwordHash,
|
|
22410
22412
|
passwordUpdateTimestamp: new Date(),
|
|
22411
22413
|
});
|
|
22412
|
-
|
|
22414
|
+
if (input.callback) {
|
|
22415
|
+
await this.sendRegistrationEmail(newUser, input.callback, input.languageCode);
|
|
22416
|
+
}
|
|
22413
22417
|
this.logger.debug(`New user created: ${input.email} - ${input.userName}`, {
|
|
22414
22418
|
user: newUser,
|
|
22415
22419
|
});
|