Try to search the reset button from your modem. Press it using a pin for 5 seconds. The password will be reset successfully. You can also change it by using the LOgin admin pannel.
Read= https://dlinkaplocal.net/easy-to-recover-your-d-link-wireless-router-password/50 for more details.