How can you recover your password

I haven't played in almost a year and I lost my password when I switched device's