> For the complete documentation index, see [llms.txt](https://docs.senpiper.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.senpiper.com/general-system-settings/authentication-settings/password-settings.md).

# Password settings

### 1. Default password settings for the users

This setting helps system admins enable or disable 2-factor authentication for the users while logging into the system.

<figure><img src="/files/PSsPkgHEZxxhqy950hOq" alt=""><figcaption><p><em>2-factor authentication</em></p></figcaption></figure>

### 2. Account Lockout Policy

*Account lockout policy is* used by system admins to lock out an account when someone tries to log on unsuccessfully several times in a row. The user's account will be locked after the **mentioned number of wrong attempts.** System admin can unblock users from [<mark style="color:purple;">**manage user**</mark>](/user-management/managing-users.md)<mark style="color:purple;">**.**</mark>

<figure><img src="/files/fef05Jwxvqjop8cOJzej" alt=""><figcaption><p><em>Account lockout policy</em></p></figcaption></figure>

### 3. Validate a Password

System Admin can set a default or a custom password validation for its user's accounts.&#x20;

<figure><img src="/files/E3cSe7g87aNM0c90pFHL" alt=""><figcaption><p><em>Dafault Password Regex</em></p></figcaption></figure>

<figure><img src="/files/VcGF9MgHytsC5vPIXtnN" alt=""><figcaption><p><em>Custom Password regex</em></p></figcaption></figure>

### 4. Password Expiry Time

As a System Admin, you can make user passwords expire after a certain number of days, or set passwords to never expire. By default, passwords are set to never expire for your organization.

<figure><img src="/files/qEbsylsaM8WJJVAGjyax" alt=""><figcaption><p><em>Password expiry</em></p></figcaption></figure>

### 5.  Reset the Password

The System admin can enable users to reset their password if all login attempts are exhausted.

<figure><img src="/files/FWJFLb079YAqUVOMKs3Z" alt=""><figcaption><p><em>Reset password</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.senpiper.com/general-system-settings/authentication-settings/password-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
