### Description:
The new version 3.6.0 is working fine when i update an exist…ing instance. But i am not able to start new ones. I am running automated scripts to build up my docker container whenever i want to. But it fails since 2FA is forced (if i understand it right) it fails at the point, where i want to change things like SiteURL or Admin user
https://rocket.chat/all-aboard-rocket-chat-3-6-is-here/
"If you’re changing an important setting on your Admin panel or resetting an E2E Key, our system will now ask you for a 2-Factor Authentication code to proceed with the changes."
This breaks the whole automatism thing... Correct me if i am wrong.
### Steps to reproduce:
1. Start RC in 3.6
2. try to create Admin user or reset settings like SiteURL
3. enjoy TOTP errors
### Expected behavior:
No 2FA forced - because i think a lot of people are using automated setups, you can't use 2FA that way ...
### Actual behavior:
RC does not start.
### Server Setup Information:
- Version of Rocket.Chat Server: 3.6.0
- Operating System: node:12.18-slim docker
- Deployment Method: docker
- Number of Running Instances: >10
- DB Replicaset Oplog:
- NodeJS Version: 12.18
- MongoDB Version: v3.6.13
### Relevant logs:
```
infos of customer-admin:
rocketchat_1 | {"user":{"_id":"XXXXXXXXX","createdAt":"2020-09-08T08:41:14.283Z","name":"Administrator","username":"admin","status":"offline","utcOffset":0,"active":true,"emails":[{"address":"example@mail.de","verified":false}],"type":"user","services":{},"roles":["admin"]},"success":true}
update customer-admin:
rocketchat_1 | {"success":false,"error":"TOTP Required [totp-required]","errorType":"totp-required","details":{"method":"password","codeGenerated":false,"availableMethods":[]}}
infos of general channel:
rocketchat_1 | {"channel":{"_id":"GENERAL","ts":"2020-09-08T08:41:13.861Z","t":"c","name":"general","usernames":[],"msgs":0,"usersCount":0,"default":true,"_updatedAt":"2020-09-08T08:41:13.861Z"},"success":true}
invite admin to general channel:
rocketchat_1 | {"channel":{"_id":"GENERAL","ts":"2020-09-08T08:41:13.861Z","t":"c","name":"general","usernames":[],"msgs":1,"usersCount":1,"default":true,"_updatedAt":"2020-09-08T08:41:20.709Z"},"success":true}
reset Site_Url:
rocketchat_1 | {"success":false,"error":"TOTP Required [totp-required]","errorType":"totp-required","details":{"method":"password","codeGenerated":false,"availableMethods":[]}}
rocketchat_1 | Customer admin could not be created - Aborting!
```
### Additional:
If i login via 2FA password like this:
```
loginInfo=$(curl -H "Content-type:application/json" -H "x-2fa-code: passw0rd" -H "x-2fa-method:password" http://localhost:3100/api/v1/login \
-d '{"user": "admin", "password": "passw0rd"}')
userId=$(echo $loginInfo | jq -r ".data.userId")
authToken=$(echo $loginInfo | jq -r ".data.authToken")
```
Result:
`rocket.chat rest api login info: {"status":"success","data":(...)}`
the login is ok but this fails due to
"`{"success":false,"error":"TOTP Invalid [totp-invalid]","errorType":"totp-invalid","details":{"method":"password"}}`":
```
return_msg=$(curl -H "X-Auth-Token: $authToken" \
-H "X-User-Id: $userId" -H "x-2fa-code:passw0rd" -H "x-2fa-method:password"\
-H "Content-type:application/json" \
http://localhost:3100/api/v1/settings/Site_Url \
-d '{"value": "'$ROOT_URL'"}')
```