This fixes the check whether a warning should be logged when resetting the password from outside the local network. Fixes: #10059