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

@@ -21,7 +21,7 @@ class PasswordResetService(BaseService):
self.logger.error(f"failed to create password reset for {email=}: user doesn't exists")
# Do not raise exception here as we don't want to confirm to the client that the Email doesn't exists
return None
elif user.password == "LDAP" or user.auth_method == AuthMethod.LDAP:
elif user.auth_method == AuthMethod.LDAP:
self.logger.error(f"failed to create password reset for {email=}: user controlled by LDAP")
return None