This commit is contained in:
Isaac Wise
2024-07-27 17:41:13 -05:00
parent 4faf389a2b
commit 94be3a7448
34 changed files with 308 additions and 256 deletions
@@ -24,10 +24,7 @@ export default async function deleteUserById(
if (!isServerAdmin) {
if (user.password) {
const isPasswordValid = bcrypt.compareSync(
body.password,
user.password
);
const isPasswordValid = bcrypt.compareSync(body.password, user.password);
if (!isPasswordValid && !isServerAdmin) {
return {