# Account Security

The account security let you define security rules to secure your built in ngSurvey user accounts. You can also further secure the accounts using [env](https://docs.ngsurvey.com/installation-setup/installation/environment-variable-settings)i[ronment variable settings](https://docs.ngsurvey.com/installation-setup/installation/environment-variable-settings).

## 🔅 Account security properties

* **`Lock account if inactive for`** will lock out the account if its not used during a period of time.
* **`Enable two factor authentication for built-in account`** let you define an email that will be used as two factor authentication. Each user will be required to enter a code to confirm their login. User will be able to remind its device for 7 device once successfully logged in.

{% hint style="info" %}
If you're locked out due to issues with the two factor authentication you can disable it using the NGSurvey:TwoFactorDisabled [environment variable](https://docs.ngsurvey.com/installation-setup/installation/environment-variable-settings).
{% endhint %}
