Redact user data
This commit is contained in:
parent
5aad81f09e
commit
622c274deb
1 changed files with 4 additions and 2 deletions
|
|
@ -29,8 +29,10 @@ export default async (req: Request, res: Response) => {
|
||||||
if (req.body.email) {
|
if (req.body.email) {
|
||||||
await ValidateEmail(user);
|
await ValidateEmail(user);
|
||||||
}
|
}
|
||||||
|
return res.status(200).json({
|
||||||
return res.status(200).json({ "Successfully Deleted": user });
|
...user,
|
||||||
|
password: "REDACTED",
|
||||||
|
});
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
LOGGER.error(ex);
|
LOGGER.error(ex);
|
||||||
return res.status(500).json({ error: ex });
|
return res.status(500).json({ error: ex });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue