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