You can do a master reset, which reset the router back to the way it was out of the box, by pressing in and holding the recessed button in the back of the router, you may need a paperclip to press it - but is usually easier to go to a device that's able to connect and just have it show the password.