@punks/backend-entity-manager 0.0.56 → 0.0.58
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 +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -19088,7 +19088,8 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
19088
19088
|
this.jwtProvider = jwtProvider;
|
|
19089
19089
|
}
|
|
19090
19090
|
async execute(input) {
|
|
19091
|
-
const user = await this.resolveUser(input.email, input.context)
|
|
19091
|
+
const user = (await this.resolveUser(input.email, input.context)) ??
|
|
19092
|
+
(await this.resolveUser(input.userName, input.context));
|
|
19092
19093
|
if (user && user.verified) {
|
|
19093
19094
|
return {
|
|
19094
19095
|
success: false,
|