# MFA QR Code + Secret not appearing

**URL:** <https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632>\
**Category:** Troubleshooting\
**Created:** [March 14, 2018, 10:22am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632 "2018-03-14T10:22:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jcr](https://forum.mattermost.com/u/jcr)\
**Post date:** [March 14, 2018, 10:22am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/1 "2018-03-14T10:22:40Z")

</div>

For feature requests, please see: [http://www.mattermost.org/feature-requests/](http://www.mattermost.org/feature-requests/).

For troubleshooting questions, please post in the following format:

#### Summary

MFA QR Code + Secret not appearing after turning on MFA - Note, using NGINX with Mattermost

#### Steps to reproduce

Turn on MFA and try to login

#### Expected behavior

Would expect a QR code and secret to appear

#### Observed behavior

Step 2: Use Google Authenticator to scan this QR code, or manually type in the secret key  
An empty box appears and nothing after Secret

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [March 15, 2018, 10:56am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/2 "2018-03-15T10:56:20Z")

</div>

Hi @jcr,

Thanks for your feedback,

Could you share which server version of Mattermost you have installed as well as whether this is on the browser, desktop app or mobile?

Thanks!

---

<div class="post-metadata">

**Author:** ![jcr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jcr](https://forum.mattermost.com/u/jcr)\
**Post date:** [March 15, 2018, 11:10am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/3 "2018-03-15T11:10:02Z")

</div>

Hi Lindy, its Mattermost Enterprise Edition Version 4.7.1. We are getting the issue on all platforms

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [March 16, 2018, 8:39am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/4 "2018-03-16T08:39:29Z")

</div>

Thanks @jcr,

I’m not able to reproduce your issue on our [nightly build server](https://pre-release.mattermost.com/signup_user_complete/?id=f1924a8db44ff3bb41c96424cdc20676) running off the latest master.

Can you try to reproduce the issue on your set-up on the above server?

Also, perhaps upgrading to the [latest version](https://about.mattermost.com/download/) will resolve the issue for you…

If this doesn’t work, we can ask the engineers for help as it might be related to NGINX…

---

<div class="post-metadata">

**Author:** ![jcr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jcr](https://forum.mattermost.com/u/jcr)\
**Post date:** [March 16, 2018, 8:58am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/5 "2018-03-16T08:58:16Z")

</div>

Hi Lindy, thanks for getting back to me. It is definitely related to NGINX, I put it into learning mode and the issue disappeared, so it looks like NGINX is blocking it in some way. Would your engineers know a way around this?

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [March 19, 2018, 7:27am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/6 "2018-03-19T07:27:40Z")

</div>

Hi @jcr,

I’ve asked our engineers for their thoughts / assistance on your issue…

Hopefully have feedback for you later today…

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [March 19, 2018, 10:06pm UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/7 "2018-03-19T22:06:12Z")

</div>

Hi @jcr,

To further troubleshoot this report, can you help provide the following from around the time the issue occurs:

1. console.log output
2. the developers tools network tab output
3. the nginx configuration.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 10, 2018, 12:16am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/8 "2018-05-10T00:16:03Z")

</div>

Hi @jcr Following up on this - has this been resolved or do you need further assistance with this? If you need further assistance, we will get one of our engineers to take a further look.

---

<div class="post-metadata">

**Author:** ![jcr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jcr](https://forum.mattermost.com/u/jcr)\
**Post date:** [May 10, 2018, 2:01am UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/9 "2018-05-10T02:01:51Z")

</div>

Hi

This is resolved, it was an nginx issue

---

<div class="post-metadata">

**Author:** ![Avinash1](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Avinash1](https://forum.mattermost.com/u/Avinash1)\
**Post date:** [February 11, 2025, 12:09pm UTC](https://forum.mattermost.com/t/mfa-qr-code-secret-not-appearing/4632/10 "2025-02-11T12:09:00Z")

</div>

I’m also having the same issue with nginx. how did you fix it?
