If you have lost your WiFi password but it is still in your computer, it can be recovered.
Go to Settings > Network & internet > Wi-Fi
Find the band that indicates your current WiFi connection (It should be the 2nd band) and click on it.
Beside "Wi-Fi network password" press the "Show" button.