Nextcloud error trace shows password in plain text


Yesterday i had problems with our Nextcloud connection with LDAP.
Once a user tried to login, he received an error message saying “Internal Server Error” etc etc.

What i noticed is that it shows the password of the connecting ldap user in plain text.
While this is no problem for us (the ldap user only has read rights) this may prove a problem for other, less technical users.

Is there a fix for this problem?