@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 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,