# Login and Account Security Options

Source: https://help.yurbi.com/admin-guides/login-and-account-security-options

Yurbi includes a set of security features for sign-in and user accounts. On a self-hosted server all of them are **off by default**: upgrading does not change how your users sign in until you turn a feature on.

This article is the starting point. Each feature has its own article with setup steps, what users see, and troubleshooting.

## Features at a glance

| Feature | What it does | Default (self-hosted) | Where | Needs |
|---|---|---|---|---|
| [Enhanced Password Security](https://help.yurbi.com/admin-guides/enforcing-enhanced-password-security) | Minimum length, common-password and breach screening for new passwords | Off | Settings → Server Settings → Security Settings | Internet access for the breach check |
| [Account Lockout](https://help.yurbi.com/admin-guides/account-lockout) | Blocks sign-in for 5 minutes after 5 wrong passwords | Off | Settings → Server Settings → Security Settings | — |
| [Self-Service Password Reset and Magic Link](https://help.yurbi.com/admin-guides/self-service-password-reset-and-magic-link-sign-in) | Users reset their own password or sign in with an emailed link | Off | Settings → Server Settings → Security Settings | Outgoing email (SMTP), Public URL |
| [Two-Factor Authentication](https://help.yurbi.com/admin-guides/two-factor-authentication-2fa) | Second step at sign-in: authenticator app, email code, text message or Duo | Off | Settings → Server Settings → Security Settings | Email for email codes; a [text-message provider](https://help.yurbi.com/admin-guides/setting-up-text-message-sms-codes-for-two-factor-authentication) for SMS |
| [Managing User Accounts](https://help.yurbi.com/admin-guides/managing-user-accounts) | Invite by email, disable, unlock, force a password change, reset 2FA | Always available | Settings → Security → Users | Email for invite and reset links |
| [Service Accounts](https://help.yurbi.com/admin-guides/service-accounts-for-integrations-and-embedding) | Mark accounts used by integrations, embedding or Server Sync so 2FA and forced password changes never interrupt them | Always available | User editor | — |

## Recommended order

1. Confirm outgoing email works ([Settings → Scheduler → Mail Settings](https://help.yurbi.com/admin-guides/how-to-configure-mail-settings)) and set **Public URL** in Security Settings. Most features send email.
2. Turn on **Allow users to reset a forgotten password by email**. This removes most "I forgot my password" tickets.
3. Turn on **Enforce password security** and **Lock account for 5 minutes after 5 failed sign-in attempts** if your policy requires them.
4. Mark any integration, embedding or Server Sync accounts as **service accounts** before you touch two-factor settings.
5. Set **Two-factor mode** to *Optional*, switch on at least one method (Authenticator app is the simplest), enroll a few administrators, then switch to *Required* when ready.

## Who these apply to

These features apply to users who sign in with a Yurbi username and password. Users who sign in through single sign-on (SSO), Windows authentication, or an external identity provider are authenticated by that system and are not affected by password reset, lockout, or two-factor settings. Service accounts sign in with a password but skip the two-factor and forced-password-change steps.

## Audit trail

Every action in these features is recorded in **Settings → Audit Log**: password resets and changes, link sign-ins, lockouts and unlocks, disables, two-factor enrollments, challenges and verifications, backup-code use, remembered devices, administrator resets, and service-account changes.

## Related

- [Enforcing Enhanced Password Security](https://help.yurbi.com/admin-guides/enforcing-enhanced-password-security)
- [Account Lockout](https://help.yurbi.com/admin-guides/account-lockout)
- [Self-Service Password Reset and Magic Link Sign-In](https://help.yurbi.com/admin-guides/self-service-password-reset-and-magic-link-sign-in)
- [Two-Factor Authentication (2FA)](https://help.yurbi.com/admin-guides/two-factor-authentication-2fa)
- [Setting Up Text-Message (SMS) Codes](https://help.yurbi.com/admin-guides/setting-up-text-message-sms-codes-for-two-factor-authentication)
- [Managing User Accounts](https://help.yurbi.com/admin-guides/managing-user-accounts)
- [Signing In with Two-Factor Authentication](https://help.yurbi.com/user-guides/signing-in-with-two-factor-authentication) (for users)
- [Service Accounts for Integrations and Embedding](https://help.yurbi.com/admin-guides/service-accounts-for-integrations-and-embedding)
