U4-11476 - 2FA Not working with httpErrors existingResponse="Replace"

Created by Mayur Deore 23 Jun 2018, 12:09:41 Updated by Sebastiaan Janssen 24 Jun 2018, 07:30:15

What did you do?

Installed Umbraco 2FA package in umbraco 7.11.0 (also tested same in 7.7.7 and 7.8.1)

Updated Web.Config

                 <httpErrors errorMode="Custom" existingResponse="Replace">
                      <remove statusCode="404" subStatusCode="-1"/>
                      <remove statusCode="500" subStatusCode="-1"/>
                      <error statusCode="404" path="/Error401"/>
                      <error statusCode="500" path="/Error500"/>

Enabled Umbraco 2FA from Umbraco Back-office Dashboard

Login in Umbraco Backoffice (For user having 2FA enabled)

What did you expect to happen? *Rendering TwoFactorView after successful login

What actually happened? *TwoFactorView not loaded.

Refer [https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/92549-2fa-not-working-with-httperrors-existingresponse-replace#comment-292609]

2 Attachments


Sebastiaan Janssen 24 Jun 2018, 07:30:12

You should already have a location node near the bottom of web.config, in there you will need to negate the httpError behavior you set up for the rest of your site, for the /umbraco route and anything under it you can set it back to Auto mode, example:

<system.webServer> </system.webServer>

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: