OS X Yosemite has a
nifty troublesome password reset screen you can access by turning your computer off and back on from the login screen. However, once you do this, there is no way out. The “Reset Password” boot wizard offers no exit without reseting your password. If you restart your Mac, you will end up right back in the wizard.
Command-R, which should bring you to the recovery wizard (which is not the password reset wizard) will be completely ignored. If you hold the option key, you will be able to select which drive to boot, but when you do, you will be back at square one.
It was way too easy to get stuck in this loop.
So if you do not want to reset your password, but do want to exit the endless password reset loop, it turns out that clearing your PRAM and NVRAM will do the trick. This makes your Mac forget that it wants you to reset your password. To do this, press and hold the four keys
Command-Option-P-R simultaneously during boot until the bell has chimed twice, then release. It should chime a third time when it boots back into the normal login screen.
Perhaps it is just me, but clearing the PRAM and NVRAM has fixed more OS X boot problems than I can remember. However, if you want to keep fiddling, there are more boot options to try.