Respect the disabled setting for lost_password_link #12552
Fixes #11146 As documented when it is set to disabled the user can't request a lost password. Signed-off-by: Roeland Jago Douma <firstname.lastname@example.org>
HigH-HawK left a comment
It works as far as it removes the link from the login page but it causes the LDAP function to misbehave.
When this change is being done and the user enters a wrong password, the user is getting an internal server error and the NC log states that it could not connect to the LDAP server, despite the LDAP server being available as other users could login fine at the same time.
Further testing brought to daylight, that this behaviour only happens if the entered username is part of the LDAP server. If you enter a fictional username and password, it brings up the correct message "wrong password"