Skip to content

fix: normalize email during user signup - #2198

Open
ThewindMom wants to merge 1 commit into
OpenSignLabs:stagingfrom
ThewindMom:fix-usersignup-normalize-email
Open

fix: normalize email during user signup#2198
ThewindMom wants to merge 1 commit into
OpenSignLabs:stagingfrom
ThewindMom:fix-usersignup-normalize-email

Conversation

@ThewindMom

Copy link
Copy Markdown

Summary

  • Define the missing normalizeEmail helper used by usersignup.
  • Reuse the normalized email for signup lookup, username, email, and normalizedEmail so case/whitespace variants resolve consistently.

Why

apps/OpenSignServer/cloud/parsefunction/usersignup.js currently calls normalizeEmail(...) inside saveUser(), but the helper is not defined or imported. In the published server image this causes the signup cloud function to fail with a ReferenceError before a self-hosted tenant/user can be created.

Validation

  • node --check apps/OpenSignServer/cloud/parsefunction/usersignup.js
  • node -e 'import("./cloud/parsefunction/usersignup.js")' from apps/OpenSignServer after npm ci
  • npm exec -- prettier --check apps/OpenSignServer/cloud/parsefunction/usersignup.js

Note: npm run lint currently fails before linting this change because the server package uses ESLint 9.39.4 with only .eslintrc.json; ESLint 9 requires eslint.config.*.

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

@ThewindMom is attempting to deploy a commit to the prafull 's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant