# Two-Factor Authentication - windows server

**URL:** <https://www.dolibarr.org/forum/t/two-factor-authentication-windows-server/25554>\
**Category:** Using my Dolibarr\
**Tags:** Question, Windows, Help\
**Created:** [July 9, 2024, 5:22pm UTC](https://www.dolibarr.org/forum/t/two-factor-authentication-windows-server/25554 "2024-07-09T17:22:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskos8](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/e47774/32.png) [@Eskos8](https://www.dolibarr.org/forum/u/Eskos8)\
**Post date:** [July 9, 2024, 5:22pm UTC](https://www.dolibarr.org/forum/t/two-factor-authentication-windows-server/25554/1 "2024-07-09T17:22:00Z")

</div>

Two-Factor Authentication  
i just got the 2fa module from the doli store and running into issues getting it installed  
i just uploaded it into dolibarr and it had me change the config  
added this into config.php

```auto
// ... existing code ...
$dolibarr_main_authentication = 'twofactor';
// ... existing code ...

```

```auto
Authentication with U2F device requires that your hosting uses a valid SSL certificate!

You need to enable Two-Factor authentication by changing this line in conf.php: $dolibarr_main_authentication = 'twofactor';

```

it will not let me use it when i try and restart the server  
any ideas on why

---

<div class="post-metadata">

**Author:** ![Eskos8](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/e47774/32.png) [@Eskos8](https://www.dolibarr.org/forum/u/Eskos8)\
**Post date:** [July 17, 2024, 4:52pm UTC](https://www.dolibarr.org/forum/t/two-factor-authentication-windows-server/25554/2 "2024-07-17T16:52:09Z")

</div>

i have done some more digging and i still have not found to mutch on this
