# Cannot login when enable " Two-factor authentication"

**URL:** <https://forums.rocket.chat/t/cannot-login-when-enable-two-factor-authentication/7017>\
**Category:** Community Support\
**Created:** [May 20, 2020, 3:06pm UTC](https://forums.rocket.chat/t/cannot-login-when-enable-two-factor-authentication/7017 "2020-05-20T15:06:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyle](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@tonyle](https://forums.rocket.chat/u/tonyle)\
**Post date:** [May 20, 2020, 3:06pm UTC](https://forums.rocket.chat/t/cannot-login-when-enable-two-factor-authentication/7017/1 "2020-05-20T15:06:41Z")

</div>

### Description

Hi,  
When I enable " Two-factor authentication" in my account, I cannot login with username/ password, because form login only have 2 fields: username/ email & password , not have the second factor authentication field as:TOTP or OTP code (sent by email) .  
Please show me how to fix the problem.  
Thanks

### Server Setup Information

- Version of Rocket.Chat Server: 3.2.2
- Operating System: Ubuntu 18.04
- Deployment Method: docker
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy: 
- Firewalls involved:

### Any additional Information
