diff --git a/backend/src/controllers/auth.js b/backend/src/controllers/auth.js index 74ea314..6b2191c 100644 --- a/backend/src/controllers/auth.js +++ b/backend/src/controllers/auth.js @@ -57,7 +57,7 @@ async function register(req, res, next) { OR: [ { email }, { username }, - ...(wsdcId ? [{ wsdcId }] : []), + ...(wsdcId ? [{ wsdcId: String(wsdcId) }] : []), ], }, }); @@ -95,7 +95,7 @@ async function register(req, res, next) { passwordHash, firstName, lastName, - wsdcId, + wsdcId: wsdcId ? String(wsdcId) : null, verificationToken, verificationCode, verificationTokenExpiry,