fix: Remove constraint on unhashed password being 'LDAP' (#6236)

This commit is contained in:
Carter
2025-09-24 23:32:28 -05:00
committed by GitHub
parent 3ec55f0e48
commit c9f3f65f36
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class UserController(BaseUserController):
@user_router.put("/password")
def update_password(self, password_change: ChangePassword):
"""Resets the User Password"""
if self.user.password == "LDAP" or self.user.auth_method == AuthMethod.LDAP:
if self.user.auth_method == AuthMethod.LDAP:
raise HTTPException(
status.HTTP_400_BAD_REQUEST, ErrorResponse.respond(self.t("user.ldap-update-password-unavailable"))
)