bug fixed + add support for google profile pics
This commit is contained in:
@@ -25,8 +25,10 @@ export default async function deleteUserById(
|
||||
};
|
||||
}
|
||||
|
||||
// Then, we check if the provided password matches the one stored in the database (disabled in Keycloak integration)
|
||||
if (!keycloakEnabled && !authentikEnabled && !isServerAdmin) {
|
||||
// Then, we check if the provided password matches the one stored in the database (disabled in SSO/OAuth integrations)
|
||||
if (user.password && !isServerAdmin) {
|
||||
console.log("isServerAdmin", isServerAdmin);
|
||||
console.log("isServerAdmin", body.password);
|
||||
const isPasswordValid = bcrypt.compareSync(
|
||||
body.password,
|
||||
user.password as string
|
||||
|
||||
Reference in New Issue
Block a user