# Sign in and passwords

> Sign in with email and password, Google, GitHub, or your company account. Set a strong password, reset a forgotten one, and see and end your sessions.

Source: https://docs.wpwaterfall.com/sign-in-and-passwords

You can sign in to WP Waterfall with an email and password, with Google or GitHub, or through your company's single sign-on. This article covers passwords and sessions. For the other ways, see [Connected accounts](https://docs.wpwaterfall.com/connected-accounts) and [Single sign-on with SAML](https://docs.wpwaterfall.com/single-sign-on-saml).

## Create an account with a password

1. On the sign-up page, enter your name, your email, and a password.
2. Open the link in the email from WP Waterfall, and choose **Confirm my email** on the page it opens. The link works for one hour. An address is not an account until you confirm it.
3. In the browser you signed up in, you are now signed in. In any other browser, choose a password and sign in with it.

If the address already has an account, WP Waterfall shows the same screen and sends the owner of the address a note instead. The screen never says whether an address has an account.

A sign-up is not an account until its address is confirmed. If you sign up again with the same address before you confirmed it, the new sign-up takes the place of the old one: the new password and name count, and a fresh link goes out. A sign-up that nobody confirms is removed after 7 days.

## Confirm your email

The link in the email opens a page with one button, **Confirm my email**. Opening the link changes nothing. Only the button confirms, so a mail program that opens links to scan them cannot confirm your address or sign in as you.

What happens next depends on the browser:

- **The browser you signed up in.** Your address is confirmed and you are signed in, with the password you chose.
- **Another browser or device**, such as a link opened on your phone after you signed up on a laptop. Your address is confirmed and the page asks you to choose a password. Type it twice, choose **Save password**, and sign in with it. The password typed at sign-up no longer works. To keep your password on the other device, sign in there with it first. The page says to check your email, and the link then signs that browser in.

The second case is there to protect you. Anyone can type your address into the sign-up form with a password of their own. The link proves that you hold the mailbox. It does not prove that you chose that password. So a password stays only when the same browser both signed up and confirmed.

- **This link was already used.** The address is confirmed. Sign in. A link confirms once, and a second use changes nothing.
- **That link expired or is not valid.** The link works for one hour. Type your email on the same page and choose **Send the link again**.
- **You did not sign up.** Ignore the email. Nothing happens unless someone opens the link from your mailbox and presses the button. If you do press it, the password the other person typed is removed, and only you can choose a new one.
- If you never set a password on that page, use **Forgot your password?** on the sign in page.

## Password rules

- 12 to 128 characters. Longer is better. A few random words work well.
- Not a common password. WP Waterfall checks a short list on its own servers and also rejects repeats such as `aaaaaaaaaaaa`, runs such as `123456789012`, and a common word with digits around it. Nothing leaves WP Waterfall for this check.
- Not your name or the first part of your email address.

WP Waterfall stores only a one-way hash of your password (Argon2id). Nobody at WP Waterfall can read it.

## Wrong passwords and lockouts

Five wrong passwords for one account from one address in 15 minutes lock that sign-in for one minute. Each further wrong password doubles the wait, up to 30 minutes. One IP address that tries many accounts is slowed the same way. The message for a wrong password is the same for an address with no account, so it never reveals which addresses exist. Signing in with the right password after the wait works as normal.

If your company requires [single sign-on](https://docs.wpwaterfall.com/single-sign-on-saml#mandatory-single-sign-on), password sign-in is closed for its domains, except for the Owner and the exceptions list.

## Reset a forgotten password

1. On the sign-in page, choose **Forgot your password?**
2. Enter your email. WP Waterfall shows the same confirmation for every address.
3. Open the link in the email. It works once and expires in 30 minutes. A new request cancels the older link.
4. Choose a new password. WP Waterfall signs you out everywhere, forgets your trusted browsers, and emails you a security notice.

If you signed up with Google or GitHub and have no password, the same link creates one.

## Change your password

1. Open **Account settings**, then **Security**.
2. Under **Password**, enter your current password and a new one.
3. Save. WP Waterfall signs out your other sessions and keeps this one.

## Create a password after Google or GitHub

If you signed up with Google or GitHub, you have no password yet. WP Waterfall adds a notification to the bell called **Create a password**, so you can still sign in if that provider is not available. It sits at the top of the bell with a blue dot.

This notification cannot be marked as read, and opening the bell leaves it unread. It keeps counting on the bell until you create a password:

1. Open the bell and select **Create a password**. It opens **Account settings**, then **Security**, at the password form.
2. Enter a new password twice and choose **Create password**.

You can also add a passkey instead. A passkey that checks you does the same job as a password, so the notification clears when you add one, and you are never asked to create a password after that. A password and a passkey are both optional once you have one of them.

If you signed in less than 15 minutes ago, **Create password** saves the password at once. If it has been longer, WP Waterfall first emails a 6 digit code to your account address. Choose **Email me a code**, enter the code under the form, and choose **Create password**. You stay on the page and you do not sign in again. The code works for 10 minutes and once. It is void after 5 wrong tries, and you can ask for 3 codes an hour (**Resend code** waits 60 seconds). It proves you can read your own email, which someone who only has an old copy of your session cannot do.

When WP Waterfall asks you to confirm it is you (before it shows a secret, for example) and you have no password and no passkey, the box lets you set a password or add a passkey there. See [Add a passkey](https://docs.wpwaterfall.com/add-a-passkey).

WP Waterfall then marks the notification as done and read. You do not need to do anything else. If you sign in with Google or GitHub again and the notification is missing while you still have no password, WP Waterfall adds it back. It never adds a second one. See [Notifications](https://docs.wpwaterfall.com/notifications) for how the bell treats notices that need action.

## Sessions: where am I signed in?

A session is a signed-in browser or device. WP Waterfall keeps it for 14 days of idle time and at most 90 days from sign-in. Session cookies are HttpOnly.

Open **Account settings**, then **Security**. Under **Sessions**, each row shows the browser, the IP address, and when it was last active. The row you are using says **This device**. Choose **Sign out** on a row to end it, or **Sign out everywhere else** to end all the others. **Sign out everywhere else** emails you a security notice, so you hear of it if someone else did it.

If you think someone has your session, choose **Secure my account** under **Sessions**. After you confirm a recent sign-in, it signs out every other session, forgets your trusted browsers, and ends every assistant connection you approved, then lists your API keys so you can revoke any you do not use.

A password reset ends every session. A password change, turning two-factor on or off, and disconnecting a sign-in method end every other session.

**Recent activity** on the same page lists the last 3 days of sign-ins, failed sign-ins, resets, and security changes with their IP address. If one looks wrong, sign out that session and change your password. WP Waterfall also emails you when your password, two-factor, or a sign-in method changes.

A script cannot use your session cookie: cookies are for the browser, and scripts use an [API key](https://docs.wpwaterfall.com/developers/authentication).

## Confirm it is you

Sensitive actions, such as deleting a site, creating an API key, inviting a user, or revealing SFTP and database credentials, need a sign-in from the last 10 minutes. When yours is older, a box named **Confirm it is you** opens. It says in one sentence what it is for.

You confirm the way you sign in:

- **With a password:** enter it and choose **Confirm**.
- **With a passkey:** choose **Use a passkey**.
- **With Google only:** choose **Confirm with Google**. A small Google window opens. Sign in there, and the window closes by itself.
- **With no password and no passkey yet:** set a password or add a passkey in the box.

You never lose your place. The page behind the box stays as it is, with every dialog open and everything you typed.

- A tool that takes input asks when it opens, before you type. If you choose **Cancel**, the tool closes too.
- A single button, such as **Reveal**, asks when you press it.
- A confirmation lasts 10 minutes. If it ends while you type, the box opens when you press the button, and your form is still there after it.

If your browser blocks the small Google window, or you close it, choose **Confirm with Google** again. The page then goes to Google and comes back to the same address, and the tool opens again with what you typed. WP Waterfall keeps that draft in this browser tab for at most 15 minutes and removes it once it is used. It never keeps a password, a key, a token, a card, or a code, so you enter those again. You press the tool's button yourself: nothing is sent for you.

If your session ends while a tool is open, you sign in and land on the same address, and the tool opens again with its draft in the same way.

## Quick answers

**Does WP Waterfall check my password against a breach database?**
No. It checks a local list of common passwords and a few patterns, and nothing is sent anywhere. Use a password you do not use on another site.

**I signed in once and now the page says to check my email.**
The password was right, but the address is not verified. WP Waterfall sent a fresh link. It works for one hour.

**Why did I get a security email?**
Something changed on your account, such as a password reset or a new sign-in method. If it was not you, reset your password and turn on [two-factor authentication](https://docs.wpwaterfall.com/two-factor-authentication).

**Sign up says WP Waterfall is not available in my location.**
WP Waterfall does not offer the service in countries and regions that the United States embargoes. A request from one of them cannot create an account, create a site, or buy a plan or an add-on. An account made somewhere else can still sign in there and use the sites it has. The API answers these requests with the code `region_not_available`.

**Can support reset my password in chat?**
No. Use **Forgot your password?**. If you cannot reach the inbox, ask support for account recovery: see [Lose a device](https://docs.wpwaterfall.com/lose-a-device#what-if-i-lost-the-codes-and-every-method). Support never completes recovery in chat alone, and a change waits 24 hours.

## API

- `POST /v1/auth/sign-in`
- `POST /v1/auth/sign-up`
- `POST /v1/auth/verification/resend`
- `POST /v1/auth/verification/confirm` takes the token of the emailed link and answers `signed_in`, `password_required` (with a single use `reset_token`), `confirmed`, or `already_confirmed`
- `POST /v1/auth/password/forgot`
- `POST /v1/auth/password/reset`
- `POST /v1/users/me/password` (with `email_code` for a first password when your session is more than 15 minutes old)
- `POST /v1/users/me/security/first-factor-code` emails that code
- `GET /v1/users/me/sessions`, `DELETE /v1/users/me/sessions/{id}`, and `DELETE /v1/users/me/sessions`
- `POST /v1/users/me/security/secure-account` (needs a recent sign-in)
- `GET /v1/users/me/step-up` tells whether your sign-in is recent and how many seconds are left. `POST /v1/users/me/step-up` confirms with a password
- `GET /v1/users/me/security/events`

## Related

- [Two-factor authentication](https://docs.wpwaterfall.com/two-factor-authentication)
- [Connected accounts](https://docs.wpwaterfall.com/connected-accounts)
- [Single sign-on with SAML](https://docs.wpwaterfall.com/single-sign-on-saml)
