mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 01:13:39 +10:00
slight fixes to register logic
This commit is contained in:
@@ -47,9 +47,8 @@ export default defineEventHandler(async (h3) => {
|
|||||||
mailRegex.test(e)
|
mailRegex.test(e)
|
||||||
);
|
);
|
||||||
const password = body.password;
|
const password = body.password;
|
||||||
const displayName = body.displayName ?? username;
|
const displayName = body.displayName || username;
|
||||||
|
|
||||||
console.log(username, email, password.length, displayName);
|
|
||||||
if (username === undefined)
|
if (username === undefined)
|
||||||
throw createError({
|
throw createError({
|
||||||
statusCode: 400,
|
statusCode: 400,
|
||||||
|
|||||||
Reference in New Issue
Block a user