# Reset your password

> Forgot your CNPJá password? See how to reset it with a code sent by e-mail, create the new password and set one if you only log in with Google or Microsoft.

Reset your password with a 6-digit code sent to the account's e-mail, without being logged in. The path starts at **Forgot your password?**, next to **Password** on the **Log in to your account** screen, and opens the **Reset your password** screen. To change a password you know, without a code, use [Change your password](https://cnpja.com/en-us/docs/account/settings#change-password) in your account settings.

## Request the code

1. On the **Log in to your account** screen, click **Forgot your password?**.
2. Type the account's e-mail in **E-mail**.
3. Click **Send code**.

CNPJá sends the code to that address and opens the **Create a new password** screen. If the e-mail has no CNPJá account, the screen moves on all the same, but no code is sent, and a code typed for that e-mail is refused with the same message as a wrong code, **Incorrect or expired code. Request a new one.** If the code doesn't arrive, check your spam folder and the address shown on the screen; to request it with the right address, click **Use another e-mail**.

## Create the new password

1. Type the code from the e-mail in **Verification code**.
2. Create the password in **New password**. It follows the same [sign-up rules](https://cnpja.com/en-us/docs/account/sign-up#password-rules), and the list under the field ticks each requirement met.
3. Click **Reset password**.
4. On the **Password updated** screen, click **Go to login**.
5. Log in with the new password. The e-mail is already filled in.

Resetting your password doesn't log you in, and it ends every open session of the account, in any browser, as explained in [Sessions and logging out](https://cnpja.com/en-us/docs/account/security#sessions). Logging in is always the next step, and it takes you back to the page you came from, if there was one.

Each code is checked only once: a code typed wrong is discarded, and you need to request another. To do so, click **Send a new one**, under **Didn't receive the code?**. After each new send, the screen shows **Resend in** with a countdown until another one is allowed. To get the code at a different address, click **Use another e-mail**.

## Account with Google or Microsoft only

An account that only logs in with Google or Microsoft may have no password. The same path sets one for it, with no need to know a previous password.

1. If you are logged in, open the [Reset your password](https://cnpja.com/en-us/reset-password) screen directly. The **Log in to your account** screen sends anyone already logged in straight to the app.
2. Follow [Request the code](#request-the-code) with the account's e-mail.
3. Follow [Create the new password](#create-the-new-password).

The reset also ends this browser's session: log in again, with the new password or with the provider. From then on, you can log in with e-mail and password as well as with the provider. Set the password before disconnecting a provider in [Connected accounts](https://cnpja.com/en-us/docs/account/settings#connected-accounts), or the account may be left with no way to log in.

## Common problems

| Message | What to do |
| --- | --- |
| **Enter your e-mail address.** or **Enter a valid e-mail address.** | Check the address typed in **E-mail** |
| **Enter the 6-digit code.** | Type all 6 digits of the code before **Reset password** |
| **Incorrect or expired code. Request a new one.** | The code was discarded. Click **Send a new one** and use the one from the latest e-mail |
| **Wait a moment before requesting a new code.** | Wait for the **Resend in** countdown to end |
| **Your password doesn't meet the requirements below.** | Adjust the password until every requirement is ticked |
| **We couldn't reset your password. Please try again.** | Try again in a moment. If the error persists, [contact us](https://cnpja.com/en-us/docs/support/contact) |
