In case when user don’t have access to their email, and forget Salesforce password. Administrator can change the password by executing following line of code in the Execute Anonymous Window.
//001200000UserID = User Id
//Pa$$w0rd = Password
In Force.com Developer Console, press Ctrl + E Execute above code, remember to replace Use ID and Password. Click Read more…