So, my friend was giving me his cape because he wanted to, and he told me the cape should be transferred to my account but it's not there so I log into optifine and try to see if there is a cape, there is no cape I go back to minecraft see that my minecraft logged out I type in my password and email and then, the password was changed I got an email from mojang saying my password was changed. I went to change my password right after that.