This commit is contained in:
Mike Cao
2023-02-28 20:04:17 -08:00
4 changed files with 47 additions and 52 deletions

View File

@@ -36,7 +36,7 @@ export default async (
const { username, password, id } = req.body;
const existingUser = await getUser({ username });
const existingUser = await getUser({ username }, { showDeleted: true });
if (existingUser) {
return badRequest(res, 'User already exists');