This commit is contained in:
Mike Cao 2023-02-28 20:04:17 -08:00
commit 4cb5a14de9
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');