mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Check deletedAt. (#1796)
This commit is contained in:
parent
5657a64c77
commit
84430e38eb
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