# Auth Log Missing Usernames After Enabling 2FA

**URL:** <https://forums.vitalpbx.org/t/auth-log-missing-usernames-after-enabling-2fa/4456>\
**Category:** VitalPBX 4\
**Created:** [September 11, 2024, 4:18pm UTC](https://forums.vitalpbx.org/t/auth-log-missing-usernames-after-enabling-2fa/4456 "2024-09-11T16:18:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [September 11, 2024, 4:18pm UTC](https://forums.vitalpbx.org/t/auth-log-missing-usernames-after-enabling-2fa/4456/1 "2024-09-11T16:18:32Z")

</div>

After enabling 2FA the log `/var/log/vitalpbx/authentications.log` is missing the usernames.

Prior to using 2FA, or even with 2FA, but using the wrong user/pass:

```auto
2024-09-11 12:05:40 VitalPBX authentication failed for user Test from 192.168.1.74 port 443

```

When using the correct credentials, but a wrong 2FA:

```auto
024-09-11 12:08:52 VitalPBX authentication failed for user from 192.168.1.74 port 443

# Same if there was a successful login:
2024-09-11 12:08:58 VitalPBX successful authentication for user from 192.168.1.74 port 443

```

Please fix

Thank you

---

<div class="post-metadata">

**Author:** ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)\
**Post date:** [January 10, 2025, 4:54pm UTC](https://forums.vitalpbx.org/t/auth-log-missing-usernames-after-enabling-2fa/4456/2 "2025-01-10T16:54:45Z")

</div>

This was addressed on v4.2.0 R1
