Arduino WIFi Connection

I have had my Arduino connecting up to my WIFI router without any problem for months. I have changed providers and they have issued me with a new router/modem.

I have amended the code on the Arduino to the new ssid and password but it refuses to logon.

All my cameras , ipads etc are logging on with no problem but the arduino refuses to connect on wifi..

Any help would be appreciated.

John