If you're logged in to your Stack Exchange account, but do not remember what your password was, nor do you remember your email's password either, here's what you can do:
Create a new email address, or find another email address you already have that you wish to use to login to Stack Exchange with. Don't choose the same email address you don't know the password of.
On the Stack Exchange website you're on
https://SomeSite.stackexchange.com, visit your profile page. On the desktop Stack Exchange website, your profile can be accessed by clicking on your avatar icon in the top right of the webpage.
The format of the link will be like this:
- On that profile page, visit your "edit profile and settings" tab:
- Scroll down, and you'll see the heading:
Private information (not shown publicly)
Below this heading, there is a text box for email. Change the email within this text box to the email that you picked in your mind in the first step.
- Below this, you'll find two blue buttons:
Save changes just for this community and
Save and copy changes to all Stack Exchange communities
Click on any one of them.
On that same Stack Exchange website,
https://SomeSite.stackexchange.com, visit the account recovery page:
Type the email address you chose in the first step.
Open the recovery email you'll get in that email address, and follow the instructions within it to change your password.
Once you've changed your password, return to your profile page again, this time on the vertically arranged list of tabs, click on the
My Logins tab.
From there, you'll see your list of logins, and a "remove" button to the right of each one of them.
Delete your old email address login from there, if you wish.