Connect the computer to the router via network cable, log in to the router and go to the WiFi settings page, reset the security key to WPA2 and change the wifi password. Save the changes and restart the router.
Disconnect the network cable and reconnect via WiFi using the new wifi password.