Configured LDAP and login stuck at "Verifying" -- how to disable GRAVATAR for LDAP authentication?

Kept digging… looks like it’s GRAVATAR

So if you don’t allow ERPNEXT server to reach gravatar, you can not log in with LDAP.

Also FYI here:

So I think this is “solved” in the sense that we know what is causing it, but not solved because we don’t know how to disable GRAVATAR for LDAP authentication.

for now I resolved problem with this fix: