mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
Check deletedAt.
This commit is contained in:
parent
7d3334ccce
commit
d63b1e3502
4 changed files with 47 additions and 52 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue